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

Jon Smirl jonsmirl at gmail.com
Fri Mar 27 13:47:40 CET 2009


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.

-- 
Jon Smirl
jonsmirl at gmail.com


More information about the U-Boot mailing list