diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-11-02 12:15:36 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-11-02 13:41:50 +0000 |
commit | 0932bc5156bd88f773936ee5dac5d574ff921287 (patch) | |
tree | 8fcab4128707be98beb9ba32db8f7b8fee41ed0c /src | |
parent | f008698c68618111babd2a5b7c5438110f69261e (diff) | |
download | ipxe-0932bc5156bd88f773936ee5dac5d574ff921287.tar.gz |
[build] Inhibit .eh_frame on newer gcc versions
Using -fno-dwarf2-cfi-asm is not sufficient to prevent the .eh_frame
section from being generated on newer versions of gcc. Add
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables;
this is sufficient to inhibit the .eh_frame section on gcc 4.7.1.
This does not affect the overall binary size, but does fix the numbers
reported by "size" for individual object files.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.housekeeping | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 1e05beba4..fce49288b 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -162,9 +162,12 @@ endif # output of "size". Inhibit this. # ifeq ($(CCTYPE),gcc) -CFI_TEST = $(CC) -fno-dwarf2-cfi-asm -x c -c /dev/null \ +CFI_TEST = $(CC) -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables \ + -fno-asynchronous-unwind-tables -x c -c /dev/null \ -o /dev/null >/dev/null 2>&1 -CFI_FLAGS := $(shell $(CFI_TEST) && $(ECHO) '-fno-dwarf2-cfi-asm') +CFI_FLAGS := $(shell $(CFI_TEST) && \ + $(ECHO) '-fno-dwarf2-cfi-asm -fno-exceptions ' \ + '-fno-unwind-tables -fno-asynchronous-unwind-tables') WORKAROUND_CFLAGS += $(CFI_FLAGS) endif |