summaryrefslogtreecommitdiff
path: root/cpu/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-24 18:18:16 -0400
committerMike Frysinger <vapier@gentoo.org>2009-02-02 12:24:40 -0500
commit6957a6209b02f6b69607fc47425f13731cc477f1 (patch)
tree8b71de640a10d7685d0ae33abf0ad507c849e477 /cpu/blackfin
parentee1d2001ea7fbabb2b9256026dc5468f057337f8 (diff)
downloadu-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 'cpu/blackfin')
-rw-r--r--cpu/blackfin/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu/blackfin/Makefile b/cpu/blackfin/Makefile
index b4049ff..1378fd1 100644
--- a/cpu/blackfin/Makefile
+++ b/cpu/blackfin/Makefile
@@ -47,6 +47,7 @@ $(obj)bootrom-asm-offsets.h: $(obj)bootrom-asm-offsets.s
# make sure our initcode (which goes into LDR) does not
# have relocs or external references
+$(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sections
READINIT = env LC_ALL=C $(CROSS_COMPILE)readelf -s $<
check_initcode: $(obj)initcode.o
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)