[U-Boot] [PATCH] Add gc-section support for ARM

Albert ARIBAUD albert.u.boot at aribaud.net
Tue May 15 09:01:27 CEST 2012


Le 15/05/2012 07:12, Mike Frysinger a écrit :
> On Monday 14 May 2012 17:01:30 Charles Manning wrote:
>> On Monday 14 May 2012 17:15:50 Mike Frysinger wrote:
>>> On Wednesday 02 May 2012 21:37:51 Charles Manning wrote:
>>>> Seems odd that this hasn't been done yet.
>>>> Shaves 5k off an omap overo build.
>>>
>>> my understanding is that it doesn't work for some
>>
>> It won't work for people that don't set up their lds properly.
>
> current u-boot policy is to not introduce changes that knowingly break other
> platforms.  so if you want to update the common arm config.mk, you need to at
> least compile test all arm boards.

... and considering this is dependent on toolchain setups, this should 
also be performed for the most common toolchains versions around (ELDK 
4.2 and 5.x; CS 2011, 2010, maybe even 2009; Linaro; LLVM even).

>>>> +PLATFORM_RELFLAGS += -ffunction-sections
>>>
>>> where's the -fdata-sections ?
>>
>> I tried that once before and could not get that to work with u-boot. I
>> figure doing just the function sections is better than nothing.
>
> so even your lds isn't setup properly ? :P
>
> other arches are using both fine, so it isn't a problem of common code.
> -mike

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list