public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Charles Manning <cdhmanning@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add gc-section support for ARM
Date: Thu,  3 May 2012 13:37:51 +1200	[thread overview]
Message-ID: <1336009071-23704-1-git-send-email-cdhmanning@gmail.com> (raw)

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

             reply	other threads:[~2012-05-03  1:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-03  1:37 Charles Manning [this message]
2012-05-14  5:15 ` [U-Boot] [PATCH] Add gc-section support for ARM 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336009071-23704-1-git-send-email-cdhmanning@gmail.com \
    --to=cdhmanning@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox