From d664adb6bb7243fc9be1cb242a18a76901bc5c3a Mon Sep 17 00:00:00 2001 From: Graeme Russ Date: Thu, 7 Oct 2010 20:03:20 +1100 Subject: x86: use gc sections to reduce image size Follow the discussion of Charles Manning and Mike Frysinger. Using gc_sections helps reduce image size. --- arch/i386/config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/i386') diff --git a/arch/i386/config.mk b/arch/i386/config.mk index 4b990e04ef..0e80a1ae58 100644 --- a/arch/i386/config.mk +++ b/arch/i386/config.mk @@ -26,3 +26,6 @@ CROSS_COMPILE ?= i386-linux- STANDALONE_LOAD_ADDR = 0x40000 PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__ + +LDFLAGS += --cref --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections -- cgit v1.2.1