Prelinking apps
Colin Watson
cjwatson at canonical.com
Wed Oct 20 06:57:26 CDT 2004
On Wed, Oct 20, 2004 at 12:34:28PM +0100, Scott James Remnant wrote:
> On Wed, 2004-10-20 at 01:35 +0200, Tollef Fog Heen wrote:
> > * Scott James Remnant
> > | descent scott% LD_DEBUG=statistics /lib/tls/i686/cmov/ld-linux.so.2 /usr/bin/gedit
> >
> > After a bit of discussion with Daniel Jacobowitz, it seems your method
> > of checking is a bit flawed. You need to run just LD_DEBUG=statistics
> > /usr/bin/gedit, else you will get relocations nonetheless (as you can
> > see -- the prelinking should have reduced the number of relocations to
> > 0).
>
> How curious ... Why doesn't prelinking work when you use the TLS-enabled
> link loader?
Daniel said that if you run the loader by hand as above, the kernel
moves it to a different address from the one prelink expects, which
breaks prelinking.
> Does this mean that any TLS-enabled application, even when prelinked,
> isn't going to benefit anyway?
>
> The reason you need to use that link loader is because the default i386
> one doesn't know about the hyper-accurate timer in the i686, so you
> can't use it for any useful stats.
Is there no way to use the TLS loader other than by running it manually?
--
Colin Watson [cjwatson at canonical.com]
More information about the ubuntu-devel
mailing list