Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10750
-gerrit
commit dcd072ce0b337dee20f6222b87429820fcd2c341 Author: Stefan Reinauer stefan.reinauer@coreboot.org Date: Wed Jul 1 11:30:03 2015 -0700
libpayload: always compile with -ffunction-sections
Always compile with -ffunction-sections and -fdata-sections
This does not hurt, and it allows the linker to produce much smaller binaries in some circumstances.
Change-Id: Ibf9f24c210d6d2ed40451b4cf0d68ce88220bc5f Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- payloads/libpayload/Makefile.inc | 1 + 1 file changed, 1 insertion(+)
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index a3094aa..05754fe 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -59,6 +59,7 @@ INCLUDES := -Iinclude -Iinclude/$(ARCHDIR-y) -I$(obj) -include include/kconfig.h
CFLAGS = $(EXTRA_CFLAGS) $(INCLUDES) -Os -pipe -nostdinc -ggdb3 CFLAGS += -nostdlib -fno-builtin -ffreestanding -fomit-frame-pointer +CFLAGS += -ffunction-sections -fdata-sections CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS += -Wstrict-aliasing -Wshadow -Werror