public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Add gc-section support for ARM
@ 2012-05-03  1:37 Charles Manning
  2012-05-14  5:15 ` Mike Frysinger
  0 siblings, 1 reply; 10+ messages in thread
From: Charles Manning @ 2012-05-03  1:37 UTC (permalink / raw)
  To: u-boot

Seems odd that this hasn't been done yet.
Shaves 5k off an omap overo build.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
---
 arch/arm/config.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 45f9dca..73e0cce 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -55,6 +55,10 @@ PF_CPPFLAGS_ABI := $(call cc-option,\
 		)
 PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI)
 
+PLATFORM_RELFLAGS += -ffunction-sections
+
+LDFLAGS_FINAL += --gc-sections
+
 # For EABI, make sure to provide raise()
 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
 # This file is parsed many times, so the string may get added multiple
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-05-29 21:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03  1:37 [U-Boot] [PATCH] Add gc-section support for ARM Charles Manning
2012-05-14  5:15 ` Mike Frysinger
2012-05-14 21:01   ` Charles Manning
2012-05-15  5:12     ` Mike Frysinger
2012-05-15  7:01       ` Albert ARIBAUD
2012-05-15 22:07       ` Charles Manning
2012-05-15 22:25         ` Wolfgang Denk
2012-05-15 22:45           ` Charles Manning
2012-05-17 18:53             ` Tom Rini
2012-05-29 21:03     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox