[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] x86: Add -fno-exceptions to list of possibly-supported CFLAGS for
# HG changeset patch # User Keith Coleman <keith.coleman@xxxxxxxxxxxxx> # Date 1324430207 18000 # Node ID 356a5ea2e9fbd813185a9dce1b45119b6cead7ea # Parent 22e8a72c536533749875923478e6e97724c2ebf7 x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 21860:2b768d52bc7f xen-unstable date: Sun Jul 25 22:20:47 2010 +0100 --- diff -r 22e8a72c5365 -r 356a5ea2e9fb Config.mk --- a/Config.mk Tue Dec 20 20:16:18 2011 -0500 +++ b/Config.mk Tue Dec 20 20:16:47 2011 -0500 @@ -55,6 +55,8 @@ endif endef +cc-options-add = $(foreach o,$(3),$(call cc-option-add,$(1),$(2),$(o))) + # cc-ver: Check compiler is at least specified version. Return boolean 'y'/'n'. # Usage: ifeq ($(call cc-ver,$(CC),0x030400),y) cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \ @@ -107,6 +109,9 @@ LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i)) +EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all +EMBEDDED_EXTRA_CFLAGS += -fno-exceptions + # Enable XSM security module. Enabling XSM requires selection of an # XSM security module (FLASK_ENABLE or ACM_SECURITY). XSM_ENABLE ?= n diff -r 22e8a72c5365 -r 356a5ea2e9fb stubdom/Makefile --- a/stubdom/Makefile Tue Dec 20 20:16:18 2011 -0500 +++ b/stubdom/Makefile Tue Dec 20 20:16:47 2011 -0500 @@ -54,9 +54,7 @@ # Disable PIE/SSP if GCC supports them. They can break us. TARGET_CFLAGS += $(CFLAGS) TARGET_CPPFLAGS += $(CPPFLAGS) -TARGET_CFLAGS += $(call cc-option,$(CC),-nopie,) -TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) -TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) +$(call cc-options-add,TARGET_CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) # Do not use host headers and libs GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p') diff -r 22e8a72c5365 -r 356a5ea2e9fb tools/firmware/Rules.mk --- a/tools/firmware/Rules.mk Tue Dec 20 20:16:18 2011 -0500 +++ b/tools/firmware/Rules.mk Tue Dec 20 20:16:47 2011 -0500 @@ -12,10 +12,7 @@ CFLAGS += -Werror -# Disable PIE/SSP if GCC supports them. They can break us. -$(call cc-option-add,CFLAGS,CC,-nopie) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all) +$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) # Extra CFLAGS suitable for an embedded type of environment. CFLAGS += -fno-builtin -msoft-float diff -r 22e8a72c5365 -r 356a5ea2e9fb tools/tests/blowfish.mk --- a/tools/tests/blowfish.mk Tue Dec 20 20:16:18 2011 -0500 +++ b/tools/tests/blowfish.mk Tue Dec 20 20:16:47 2011 -0500 @@ -4,10 +4,7 @@ CFLAGS = include $(XEN_ROOT)/tools/Rules.mk -# Disable PIE/SSP if GCC supports them. They can break us. -$(call cc-option-add,CFLAGS,CC,-nopie) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all) +$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) CFLAGS += -fno-builtin -msoft-float diff -r 22e8a72c5365 -r 356a5ea2e9fb xen/arch/x86/Rules.mk --- a/xen/arch/x86/Rules.mk Tue Dec 20 20:16:18 2011 -0500 +++ b/xen/arch/x86/Rules.mk Tue Dec 20 20:16:47 2011 -0500 @@ -25,10 +25,7 @@ # Prevent floating-point variables from creeping into Xen. CFLAGS += -msoft-float -# Disable PIE/SSP if GCC supports them. They can break us. -$(call cc-option-add,CFLAGS,CC,-nopie) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all) +$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) ifeq ($(supervisor_mode_kernel),y) CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1 diff -r 22e8a72c5365 -r 356a5ea2e9fb xen/arch/x86/boot/build32.mk --- a/xen/arch/x86/boot/build32.mk Tue Dec 20 20:16:18 2011 -0500 +++ b/xen/arch/x86/boot/build32.mk Tue Dec 20 20:16:47 2011 -0500 @@ -3,10 +3,7 @@ CFLAGS = include $(XEN_ROOT)/Config.mk -# Disable PIE/SSP if GCC supports them. They can break us. -$(call cc-option-add,CFLAGS,CC,-nopie) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector) -$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all) +$(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) CFLAGS += -Werror -fno-builtin -msoft-float _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |