]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - blackfin_config.mk
Blackfin: enable --gc-sections
[karo-tx-uboot.git] / blackfin_config.mk
index 7bde449263497c0ffc378e0e7e76c89794e674c6..b2d94d5562fb970f077ca2aa003a6d871c7f1f16 100644 (file)
@@ -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