[U-Boot] Size of external u-boot commands

Mike Frysinger vapier at gentoo.org
Fri Mar 27 16:54:05 CET 2009


On Friday 27 March 2009 08:47:40 Jon Smirl wrote:
> On Fri, Mar 27, 2009 at 7:17 AM, Detlev Zundel <dzu at denx.de> wrote:
> > Hi Wolfgang,
> >
> >> In message <m27i2bl0a3.fsf at ohwell.denx.de> you wrote:
> >>> > By providing a sample linker script to make the example programs
> >>> > smaller, you could avoid discussions like this in the future.
> >>>
> >>> But as long as we do not understand what we change or what this does,
> >>> we may well get a lot of bug threads in return.  And I have to admit,
> >>> I'm not to keen on that.
> >>
> >> But we do understand what's going on, or am I missing something?
> >
> > I was referring to the other proposed change which I still do not
> >
> > understand:
> >> The *.bin files are ending up at 60-75K.  Adding this to the linker
> >> script fixes it.
> >>   .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table))
> >> *(.gcc_except_table.*) }
> >
> > I fully agree that the examples should rather use defaults because as
> > the name implies, they are examples after all, not tightly optimized
> > special cases.
>
> Providing an example linker script would show us the right way to
> write it.  I've never written a linker script for the ppc and I don't
> know what I'm doing. Copying the the one over from the CPU directory
> was not sufficient to make the app smaller.

ask the toolchain for the linker script its using.  having u-boot duplicate it 
leads to obvious bit rot scenarios.  u-boot isnt an exercise in teaching you 
how to read the linker manual.

link with -Wl,--verbose to see the default linker script that is used.
-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/20090327/3294bd87/attachment.pgp 


More information about the U-Boot mailing list