I just tried it for our Octeon boards and saw a noticeable reduction in size. 
Our bootloader shrank from 1107840 to 941600 bytes.  Size isn't too big of an 
issue for us, though it's nice to see it shrink to under 1MB again.

-Aaron

On Friday, April 15, 2011 08:50:57 AM Shinya Kuribayashi wrote:
> On 04/16/2011 12:16 AM, [email protected] wrote:
> > All architectures but MIPS are using --gc-sections on final linking.
> > This patch introduces that feature for MIPS to reduce the memory and
> > flash footprint.
> > 
> > Signed-off-by: Daniel Schwierzeck <[email protected]>
> > Cc: Shinya Kuribayashi <[email protected]>
> > Cc: Wolfgang Denk <[email protected]>
> > Cc: Stefan Roese <[email protected]>
> > Cc: Thomas Lange <[email protected]>
> > Cc: Vlad Lungu <[email protected]>
> > ---
> > Tested with ELDK-4.1 and self-built gcc-4.3.3/binutils-2.19.1 on my
> > boards. I could not test the other boards so I would appreciate it if
> > the maintainers in CC could do a quick test on their boards.
> > 
> >  arch/mips/config.mk           |    2 ++
> >  board/dbau1x00/u-boot.lds     |   10 +++++-----
> >  board/gth2/u-boot.lds         |   10 +++++-----
> >  board/incaip/u-boot.lds       |   10 +++++-----
> >  board/micronas/vct/u-boot.lds |   10 +++++-----
> >  board/pb1x00/u-boot.lds       |   10 +++++-----
> >  board/qemu-mips/u-boot.lds    |   10 +++++-----
> >  board/tb0229/u-boot.lds       |   10 +++++-----
> >  examples/standalone/mips.lds  |   10 +++++-----
> >  9 files changed, 42 insertions(+), 40 deletions(-)
> 
> Basically, changes made look good.  I'm going to apply after a couple
> of weeks (or a month) of interval, even without reports from the
> maintainers.  As the patch has been proposed in the last minutes during
> the merge window, we'll make it in the v2011.06 release, thanks.
> 
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to