[U-Boot] [Nios2-dev] [PATCH] nios2: use gc sections to reduce image size

Ian Abbott abbotti at mev.co.uk
Tue Jun 1 11:12:00 CEST 2010


On 28/05/10 23:27, Thomas Chou wrote:
> Ian Abbott wrote:
>> On 28/05/2010 05:08, Thomas Chou wrote:
>>> Follow the discussion of Charles Manning and Mike Frysinger.
>>> Using gc_sections helps reduce image size.
>> Hi Thomas,
>>
>> Will that stop it working with the gcc3-based nios2 nommu toolchain?
>> The version of 'ld' in that toolchain doesn't support the --gc-sections
>> option.
>>
> 
> Hi Ian,
> 
> I have tested with the gcc3-based nios2 nommu toolchain and gc-sections 
> works.
> 
> The error that we met when building busybox might be caused by the 
> elf2flt process. There is no such problem generating elf.

Hi Thomas,

That was probably it then.  I *knew* we had some problem building
BusyBox with --gc-sections!

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


More information about the U-Boot mailing list