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

Richard Purdie rpurdie at rpsys.net
Wed Oct 15 11:31:39 UTC 2008


On Wed, 2008-10-15 at 13:09 +0200, Koen Kooi wrote:
> On 15-10-2008 12:43, Leon Woestenberg wrote:
> > On Wed, Oct 15, 2008 at 10:22 AM, Holger Freyther<zecke at selfish.org>  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% (google is your
> >>
> > If we care about dynamic link speed we should maybe revisit the rpath issue.
> >
> > I remember seeing strace's where on each .so, 10 attempts were made
> > before the right location was attempted.
> >
> > Actually, it is still on my to do:
> >
> > http://bugs.openembedded.net/show_bug.cgi?id=2140
> 
> Doesn't insane.bbclass log bad rpaths? Or are you talking about spurious 
> rpaths that don't point to staging or workdir?
> AIUI libtool 2.x should solve a lot of these.

I think what Leon is referring to is where different hardware
capabilities are checked. In Poky I ended up disabling this as at least
on ARM there were an insane number of different combinations of paths
being checked for. The patch I added to disable it was:

http://svn.o-hand.com/view/poky/trunk/meta/packages/glibc/files/no-hwcaps.patch?rev=5087&view=markup

I've not seen bad RPATH values for quite a while now.

Cheers,

Richard





More information about the Openembedded-devel mailing list