public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Easy reduction to u-boot image size
Date: Wed, 26 May 2010 00:36:17 -0400	[thread overview]
Message-ID: <201005260036.18326.vapier@gentoo.org> (raw)
In-Reply-To: <201005261244.27080.manningc2@actrix.gen.nz>

On Tuesday 25 May 2010 20:44:26 Charles Manning wrote:
> One thing I came across was that u-boot is not using function sections etc
> and as a result there's quite a bit of dead code that is included in the
> image.

FWIW, Blackfin has been using function/data sections and gc sections for quite 
a while now without any problems.  i vaguely recall things breaking with 1.1.6 
when i first implemented it, but 1.3.x+ havent caused troubles.

> Applying the following patch reduced the size by around 7k to approx 55k.
> That really helped :-) and lets me add back some functionality and still
> keep under 60k.
> 
> Note:
> 1) This only sorts out the overo. Other u-boot.lds files need to be
> modified in the same way.
> 2) This only does dead code stripping and not dead data stripping. I have
> not yet figured out why that is not working (hence the commented out line
> for -fdata-sections). This will save something, but I expect not very
> much.

might be better to add this to one arch at a time as maintainers can verify 
it.  that way they can take advantage of things while the others catch up.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100526/6c839ad5/attachment.pgp 

      reply	other threads:[~2010-05-26  4:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26  0:44 [U-Boot] Easy reduction to u-boot image size Charles Manning
2010-05-26  4:36 ` Mike Frysinger [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=201005260036.18326.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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