]> xenbits.xensource.com Git - xen.git/commitdiff
x86/build: move -fno-asynchronous-unwind-tables into EMBEDDED_EXTRA_CFLAGS
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Jun 2020 14:24:23 +0000 (16:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Jun 2020 14:24:23 +0000 (16:24 +0200)
Users of EMBEDDED_EXTRA_CFLAGS already use -fno-asynchronous-unwind-tables, or
ought to.  This shrinks the size of the rombios 32bit stubs in guest memory.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Config.mk
tools/tests/x86_emulator/testcase.mk
xen/arch/x86/Rules.mk
xen/arch/x86/boot/build32.mk

index c70957d73048c2a21b7e53081fb6ee84b7382b8c..85bde01f7777525b1b4dc2a422166c652ad97191 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -235,7 +235,7 @@ APPEND_LDFLAGS += $(foreach i, $(APPEND_LIB), -L$(i))
 APPEND_CFLAGS += $(foreach i, $(APPEND_INCLUDES), -I$(i))
 
 EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all
-EMBEDDED_EXTRA_CFLAGS += -fno-exceptions
+EMBEDDED_EXTRA_CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables
 
 XEN_EXTFILES_URL ?= http://xenbits.xen.org/xen-extfiles
 # All the files at that location were downloaded from elsewhere on
index a565d15524571d4a804196e30ac966906d7b3053..dafeb6caf76988f756e3acd5b0a884a8dfc812f1 100644 (file)
@@ -4,7 +4,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 
 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
-CFLAGS += -fno-builtin -fno-asynchronous-unwind-tables -g0 $($(TESTCASE)-cflags)
+CFLAGS += -fno-builtin -g0 $($(TESTCASE)-cflags)
 
 .PHONY: all
 all: $(TESTCASE).bin
index 659ac3d83e1cae2fc436d1ee5d9a579eee5fc7ef..812a652eecdcdd81b392c7e19517752b7d914b71 100644 (file)
@@ -35,7 +35,7 @@ $(call as-option-add,CFLAGS,CC,\
 $(call as-option-add,CFLAGS,CC,\
     ".L1: .L2: .nops (.L2 - .L1)$$(comma)9",-DHAVE_AS_NOPS_DIRECTIVE)
 
-CFLAGS += -mno-red-zone -fpic -fno-asynchronous-unwind-tables
+CFLAGS += -mno-red-zone -fpic
 
 # Xen doesn't use SSE interally.  If the compiler supports it, also skip the
 # SSE setup for variadic function calls.
index 48c7407c002fb43eea5c6f257f5d79e6b00de073..5851ebff5f586b8e1552bc7a182711859c9ffd50 100644 (file)
@@ -4,7 +4,7 @@ include $(XEN_ROOT)/Config.mk
 
 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
-CFLAGS += -Werror -fno-asynchronous-unwind-tables -fno-builtin -g0 -msoft-float
+CFLAGS += -Werror -fno-builtin -g0 -msoft-float
 CFLAGS += -I$(XEN_ROOT)/xen/include
 CFLAGS := $(filter-out -flto,$(CFLAGS))