summaryrefslogtreecommitdiffstats
path: root/arch/m68k/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/config.mk')
-rw-r--r--arch/m68k/config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68k/config.mk b/arch/m68k/config.mk
index 863f3ddbc6..81b14c23b3 100644
--- a/arch/m68k/config.mk
+++ b/arch/m68k/config.mk
@@ -28,3 +28,5 @@ CONFIG_STANDALONE_LOAD_ADDR ?= 0x20000 -L $(clibdir)
PLATFORM_CPPFLAGS += -DCONFIG_M68K -D__M68K__
PLATFORM_LDFLAGS += -n
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+LDFLAGS_FINAL += --gc-sections
OpenPOWER on IntegriCloud