public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott McNutt <smcnutt@psyent.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] nios2: use gc sections to reduce image size
Date: Tue, 15 Jun 2010 21:17:28 -0400	[thread overview]
Message-ID: <4C182628.8050502@psyent.com> (raw)
In-Reply-To: <1275019690-4671-1-git-send-email-thomas@wytron.com.tw>

Applied to: git://git.denx.de/u-boot-nios.git next
Thanks,
--Scott

Thomas Chou wrote:
> Follow the discussion of Charles Manning and Mike Frysinger.
> Using gc_sections helps reduce image size.
> 
> Configuring for nios2-generic board...
> Before,
>    text    data     bss     dec     hex filename
>  123979    3724   22892  150595   24c43 /tmp/u-boot/u-boot
> After,
>    text    data     bss     dec     hex filename
>  115983    3800   22732  142515   22cb3 /tmp/u-boot/u-boot
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
>  arch/nios2/config.mk |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/nios2/config.mk b/arch/nios2/config.mk
> index 793cc43..aba96b3 100644
> --- a/arch/nios2/config.mk
> +++ b/arch/nios2/config.mk
> @@ -31,2 +31,5 @@ PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
>  
>  LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
> +
> +LDFLAGS += --gc-sections
> +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections

      parent reply	other threads:[~2010-06-16  1:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28  4:08 [U-Boot] [PATCH] nios2: use gc sections to reduce image size Thomas Chou
2010-05-28  9:27 ` [U-Boot] [Nios2-dev] " Ian Abbott
2010-05-28 22:27   ` Thomas Chou
2010-05-28 22:58     ` Scott McNutt
2010-06-01  9:12     ` Ian Abbott
2010-06-16  1:17 ` Scott McNutt [this message]

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=4C182628.8050502@psyent.com \
    --to=smcnutt@psyent.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