diff options
author | Jason Jin <Jason.jin@freescale.com> | 2011-08-22 17:24:45 +0800 |
---|---|---|
committer | jason <jason@jason-ThinkPad-T61.(none)> | 2011-09-04 22:46:55 +0800 |
commit | 6c0bf27d74510d1d7fac9208e766eae8efac2592 (patch) | |
tree | 950b20fafd95c83f5a497da2bebe12b51306c1df /arch/m68k/config.mk | |
parent | 45263ec4c06fd8f1201df0bc7a8ab37a639a41f3 (diff) | |
download | u-boot-6c0bf27d74510d1d7fac9208e766eae8efac2592.zip u-boot-6c0bf27d74510d1d7fac9208e766eae8efac2592.tar.gz u-boot-6c0bf27d74510d1d7fac9208e766eae8efac2592.tar.bz2 |
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/config.mk')
-rw-r--r-- | arch/m68k/config.mk | 2 |
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 |