]> xenbits.xensource.com Git - xen.git/commitdiff
build: Remove -fno-stack-protector-all from EMBEDDED_EXTRA_CFLAGS
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Nov 2024 11:20:32 +0000 (12:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Nov 2024 11:20:32 +0000 (12:20 +0100)
This seems to have been introduced in commit f8beb54e2455 ("Disable PIE/SSP
features when building Xen, if GCC supports them.") in 2004.

However, neither GCC nor Clang appear to have ever supported taking the
negated form of -fstack-protector-all, meaning this been useless since its
introduction.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: b661fe107d45713f4e1395f29180cc1ae50bba92
master date: 2024-11-25 13:44:56 +0000

Config.mk

index a35e821491c117712dd3a804f0d8940f1ea47ae1..531e782fcd30d774178f04e70c7402c333d30b1a 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -190,7 +190,7 @@ endif
 APPEND_LDFLAGS += $(foreach i, $(APPEND_LIB), -L$(i))
 APPEND_CFLAGS += $(foreach i, $(APPEND_INCLUDES), -I$(i))
 
-EMBEDDED_EXTRA_CFLAGS := -fno-pie -fno-stack-protector -fno-stack-protector-all
+EMBEDDED_EXTRA_CFLAGS := -fno-pie -fno-stack-protector
 EMBEDDED_EXTRA_CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables
 
 XEN_EXTFILES_URL ?= https://xenbits.xen.org/xen-extfiles