diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-24 18:18:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-02 12:24:40 -0500 |
commit | 6957a6209b02f6b69607fc47425f13731cc477f1 (patch) | |
tree | 8b71de640a10d7685d0ae33abf0ad507c849e477 /blackfin_config.mk | |
parent | ee1d2001ea7fbabb2b9256026dc5468f057337f8 (diff) | |
download | u-boot-imx-6957a6209b02f6b69607fc47425f13731cc477f1.zip u-boot-imx-6957a6209b02f6b69607fc47425f13731cc477f1.tar.gz u-boot-imx-6957a6209b02f6b69607fc47425f13731cc477f1.tar.bz2 |
Blackfin: enable --gc-sections
Start building all Blackfin boards with -ffunction-sections/-fdata-sections
and linking with --gc-sections.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'blackfin_config.mk')
-rw-r--r-- | blackfin_config.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/blackfin_config.mk b/blackfin_config.mk index 7bde449..b2d94d5 100644 --- a/blackfin_config.mk +++ b/blackfin_config.mk @@ -27,6 +27,9 @@ CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE))) PLATFORM_RELFLAGS += -ffixed-P5 -fomit-frame-pointer PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN +LDFLAGS += --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections + ifneq (,$(CONFIG_BFIN_CPU)) PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU) endif |