Skip to content

Commit

Permalink
build: -fno-asynchronous-unwind-tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
npiggin authored and stewartsmith committed Apr 16, 2019
1 parent 9fde370 commit 36dca1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions skiboot.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ SECTIONS
/* Discards */
/DISCARD/ : {
*(.comment)
*(.eh_frame)
*(.interp)
}
}

0 comments on commit 36dca1e

Please sign in to comment.