diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-07-25 22:20:47 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-07-25 22:20:47 +0100 |
commit | 55a2e36cbc6ebde5d52601c864bc268bd568609a (patch) | |
tree | 0343089864e558c1e3c90200559220d036ff033b /Config.mk | |
parent | 8fc69686f5b6800181912b3e3dfb2559508d3f6b (diff) | |
download | xen-55a2e36cbc6ebde5d52601c864bc268bd568609a.tar.gz xen-55a2e36cbc6ebde5d52601c864bc268bd568609a.tar.bz2 xen-55a2e36cbc6ebde5d52601c864bc268bd568609a.zip |
x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -59,6 +59,8 @@ define cc-option-add-closure 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. \ @@ -134,6 +136,9 @@ $(call cc-option-add,CFLAGS,CC,-Wdeclaration-after-statement) 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 |