summaryrefslogtreecommitdiff
path: root/arch/mips/config.mk
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>2011-04-15 17:16:44 +0200
committerShinya Kuribayashi <skuribay@pobox.com>2011-05-10 00:08:10 +0900
commit660da0947abff3bc98bb0baa37a6db5050ff46d6 (patch)
tree8586e9594f64d2a366706b3729180e0516a913d6 /arch/mips/config.mk
parent7aa1f198c897e48a011f9f0dca6b3088bc474236 (diff)
downloadu-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.zip
u-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.tar.gz
u-boot-imx-660da0947abff3bc98bb0baa37a6db5050ff46d6.tar.bz2
MIPS: Introduce --gc-sections for MIPS
All architectures but MIPS are using --gc-sections on final linking. This patch introduces that feature for MIPS to reduce the memory and flash footprint. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Thomas Lange <thomas@corelatus.se> Cc: Vlad Lungu <vlad.lungu@windriver.com> Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
Diffstat (limited to 'arch/mips/config.mk')
-rw-r--r--arch/mips/config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index 318d34b..6ab8acd 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -50,3 +50,5 @@ PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__
PLATFORM_CPPFLAGS += -G 0 -mabicalls -fpic
PLATFORM_CPPFLAGS += -msoft-float
PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+LDFLAGS_FINAL += --gc-sections