Loving ld with --as-needed

Scott James Remnant scott at ubuntu.com
Thu Mar 3 03:33:01 CST 2005


On Wed, 2005-03-02 at 23:47 -0500, John Richard Moser wrote:

> Scott James Remnant wrote:
> > On Mon, 2005-02-28 at 05:20 +1100, Jeff Waugh wrote:
> [...]
> 
> >>
> > 
> > Indeed, it massively helps the rebuild problem (like the Libtool change
> > to do similar does); and would boost performance as you're performing
> > far fewer relocations on application load.
> [...]
> 
> Relocations?  Aren't those for ill-designed code that has some code in
> it that can't execute at the position it's loaded, so is moved
> elsewhere?  Proper libraries should be pure PIC.
> 
You have to perform relocation whenever the load address of an
application or shared library doesn't match that at build time.  ie. you
need to perform relocations on every PIC library.

If you're interested, read:
	http://people.redhat.com/drepper/dsohowto.pdf

Scott
-- 
Scott James Remnant     Linux.Ars: Best Community, Best Distribution and
scott at ubuntu.com                   Best Newcomer 2004:  Ubuntu Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050303/0131bc4b/attachment.pgp


More information about the ubuntu-devel mailing list