diff options
author | Tom Rini <trini@ti.com> | 2013-04-25 07:40:22 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-05-23 12:09:56 +0200 |
commit | fd725691797bb3192af15a15c2cba7d0b2ee9327 (patch) | |
tree | 5f433a275d6bb4261cf440ce76a226fdcef6d48f /arch/arm/config.mk | |
parent | 0ad6c34c3ed7d8e0595f8647dd7175eff18a8474 (diff) | |
download | u-boot-fd725691797bb3192af15a15c2cba7d0b2ee9327.tar.gz u-boot-fd725691797bb3192af15a15c2cba7d0b2ee9327.tar.bz2 u-boot-fd725691797bb3192af15a15c2cba7d0b2ee9327.zip |
arm: Enable -ffunction-sections / -fdata-sections / --gc-sections
While other architectures have enabled these gcc / ld options for some
time on U-Boot itself, ARM has only been doing this on SPL. Enable this
on full U-Boot as well now.
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r-- | arch/arm/config.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 461899eabc..dc64160789 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -31,6 +31,9 @@ CONFIG_STANDALONE_LOAD_ADDR = 0xc100000 endif endif +LDFLAGS_FINAL += --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections + # Support generic board on ARM __HAVE_ARCH_GENERIC_BOARD := y |