Loving ld with --as-needed
John Richard Moser
nigelenki at comcast.net
Wed Mar 2 22:47:00 CST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
AFAIK, libraries are mapped in with mmap(), so if they're truly pure PIC
libraries (as they should be), there shouldn't be relocations. Those
that have them, well. . . somebody needs to boot whoever in the head.
Personally I want a gcc that I can set to hard error when it generates
code that will cause a relocation when linked, to help with eliminating
these nuisances.
> Scott
>
- --
All content of all messages exchanged herein are left in the
Public Domain, unless otherwise explicitly stated.
Creative brains are a valuable, limited resource. They shouldn't be
wasted on re-inventing the wheel when there are so many fascinating
new problems waiting out there.
-- Eric Steven Raymond
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCJpa9hDd4aOud5P8RAjE/AJ0U7qjKMui6khL9HhEHPmHPhXYqBgCfQZmA
ES+MTnXpIfwzNO29jl2A2kY=
=5XK4
-----END PGP SIGNATURE-----
More information about the ubuntu-devel
mailing list