From: Mike Frysinger Date: Fri, 27 Mar 2009 11:54:05 -0400 Subject: [U-Boot] Size of external u-boot commands In-Reply-To: <9e4733910903270547g67cdcf04xbc864e8202b217fc@mail.gmail.com> References: <9e4733910903260647w549a97acv7101ea9347a767bb@mail.gmail.com> <9e4733910903270547g67cdcf04xbc864e8202b217fc@mail.gmail.com> Message-ID: <200903271154.06775.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 27 March 2009 08:47:40 Jon Smirl wrote: > On Fri, Mar 27, 2009 at 7:17 AM, Detlev Zundel wrote: > > Hi Wolfgang, > > > >> In message 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