diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-04-14 22:50:38 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-04-17 09:26:40 +1000 |
commit | 36dca1e915dae14aba931edfc9786dddcac44ae6 (patch) | |
tree | 3e660081fdff6f9e41cff65c860a308963d787bb | |
parent | 9fde370b03c05984bf4401cef2b8e59788758966 (diff) | |
download | skiboot-36dca1e915dae14aba931edfc9786dddcac44ae6.zip skiboot-36dca1e915dae14aba931edfc9786dddcac44ae6.tar.gz skiboot-36dca1e915dae14aba931edfc9786dddcac44ae6.tar.bz2 |
build: -fno-asynchronous-unwind-tables
skiboot does not use unwind tables, this option saves about 100kB,
mostly from .text.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | Makefile.main | 2 | ||||
-rw-r--r-- | skiboot.lds.S | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main index 8a99ec9..68c744d 100644 --- a/Makefile.main +++ b/Makefile.main @@ -74,7 +74,7 @@ ifeq ($(DEBUG),1) CPPFLAGS += -DDEBUG -DCCAN_LIST_DEBUG endif -CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 +CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64 -fno-asynchronous-unwind-tables CFLAGS += -mcpu=power7 CFLAGS += -Wl,--oformat,elf64-powerpc CFLAGS += $(call try-cflag,$(CC),-ffixed-r13) diff --git a/skiboot.lds.S b/skiboot.lds.S index 8d09b40..6f6f771 100644 --- a/skiboot.lds.S +++ b/skiboot.lds.S @@ -175,6 +175,7 @@ SECTIONS /* Discards */ /DISCARD/ : { *(.comment) + *(.eh_frame) *(.interp) } } |