[coreboot-gerrit] New patch to review for coreboot: libpayload: always compile with -ffunction-sections

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Jul 1 20:32:40 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10750

-gerrit

commit 8bf54f4578ecb431f75aa6e49e848da57007037a
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Wed Jul 1 11:30:03 2015 -0700

    libpayload: always compile with -ffunction-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 at 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..9b182b6 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
 CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
 CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
 CFLAGS += -Wstrict-aliasing -Wshadow -Werror



More information about the coreboot-gerrit mailing list