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

Holger Freyther zecke at selfish.org
Wed Oct 15 18:18:41 UTC 2008


On Wednesday 15 October 2008 10:54:41 Phil Blundell wrote:
> On Wed, 2008-10-15 at 10:22 +0200, Holger Freyther wrote:
> > 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% (google is
> > your friend). This is an option for binutils and was introduced with
> > binutils 2.17. Now there are two ways to achieve this:
>
> If you are using a modern GNU runtime then I think it should be safe to
> just select --hash-style=gnu.  This will give you the speed improvement
> without the space penalty of two hashes.

Modern as in glibc 2.5? I think we could strip the .hash away. I'm waiting for 
my build to finish to get some numbers about the actual size difference. But 
I guess on (e)glibc 2.5 and above gnu would be good enough.


z.




More information about the Openembedded-devel mailing list