diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:20 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:20 +1100 |
commit | d664adb6bb7243fc9be1cb242a18a76901bc5c3a (patch) | |
tree | b29c069950bd4c4af917015c29ba3ae824a4818e /arch | |
parent | abe98f49e191ce0183132bed548643db7e2b80c5 (diff) | |
download | u-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.zip u-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.tar.gz u-boot-imx-d664adb6bb7243fc9be1cb242a18a76901bc5c3a.tar.bz2 |
x86: use gc sections to reduce image size
Follow the discussion of Charles Manning and Mike Frysinger.
Using gc_sections helps reduce image size.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/config.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/i386/config.mk b/arch/i386/config.mk index 4b990e0..0e80a1a 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 |