On Friday 27 March 2009 08:47:40 Jon Smirl wrote: > On Fri, Mar 27, 2009 at 7:17 AM, Detlev Zundel <[email protected]> wrote: > > Hi Wolfgang, > > > >> In message <[email protected]> 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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

