summaryrefslogtreecommitdiff
path: root/blackfin_config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'blackfin_config.mk')
-rw-r--r--blackfin_config.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/blackfin_config.mk b/blackfin_config.mk
index 7bde449263..b2d94d5562 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