summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2011-08-22 17:24:45 +0800
committerjason <jason@jason-ThinkPad-T61.(none)>2011-09-04 22:46:55 +0800
commit6c0bf27d74510d1d7fac9208e766eae8efac2592 (patch)
tree950b20fafd95c83f5a497da2bebe12b51306c1df /arch/m68k
parent45263ec4c06fd8f1201df0bc7a8ab37a639a41f3 (diff)
ColdFire: Cleanup for partial linking and --gc-sections
Introduce the --gc-sections for ColdFire platform and clean up the corresponding lds file. Signed-off-by: TsiChung Liew <tsicliew@gmail.com> Signed-off-by: Jason Jin <Jason.jin@freescale.com>
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 863f3ddbc6a..81b14c23b34 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