[oe] [RFC] Enable --hash-style=both for all recent gcc4 targets

Koen Kooi k.kooi at student.utwente.nl
Thu Oct 16 07:05:01 UTC 2008


On 15-10-2008 23:17, Holger Freyther wrote:
> On Wednesday 15 October 2008 10:51:33 Koen Kooi wrote:
>> On 15-10-2008 10:22, Holger Freyther wrote:
>>> Hey guys,
>>>
>>> I would start linking everything with -Wl,--hash-style=both as this is
>>> said to speed up the loading of shared libraries by about 50%
>> Also check the as-needed stuff from Poky:
>>
>> ASNEEDED = "-Wl,--as-needed"
>> ASNEEDED_pn-console-tools = ""
>> ASNEEDED_pn-distcc = ""
>> ASNEEDED_pn-openobex = ""
>> ASNEEDED_pn-icu = ""
>> ASNEEDED_pn-xserver-kdrive-xomap = ""
>> ASNEEDED_pn-minimo = ""
>> ASNEEDED_pn-pciutils = ""
>> ASNEEDED_pn-puzzles = ""
>> ASNEEDED_pn-dialer = ""
>>
>> TARGET_LDFLAGS += "${ASNEEDED}"
>>
>> That should also reduce library load time *and* eliminate spurious deps.
>
> Thanks. holger/hash-style has my take on that. It attempts to keep the
> enabling to the libc and distro and the blacklist can be shared among
> everyone.
>
> comments?

Looks good, but I first would like to know how one can identify a recipe 
that breaks with as-needed. Does it fail to link, does it crash at 
runtime, etc?

regards,

Koen





More information about the Openembedded-devel mailing list