summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k')
-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 863f3dd..81b14c2 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