summaryrefslogtreecommitdiff
path: root/arch/sh/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/config.mk')
-rw-r--r--arch/sh/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/config.mk b/arch/sh/config.mk
index 6ef44638ab..85dab383e7 100644
--- a/arch/sh/config.mk
+++ b/arch/sh/config.mk
@@ -13,6 +13,6 @@ LDFLAGS_STANDALONE += -EB
endif
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
-PLATFORM_RELFLAGS += -fpic
+PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
LDFLAGS_FINAL = --gc-sections
PLATFORM_RELFLAGS += -ffixed-r13