RFC: libkse*.a in 7.0

Peter Jeremy peterjeremy at optushome.com.au
Thu Nov 29 10:24:30 PST 2007


On Wed, Nov 28, 2007 at 04:54:05PM -0500, Daniel Eischen wrote:
>I argued for removing libc.a as well as lib<thread>.a a couple of
>years ago and was met with opposition, mostly because statically
>linked applications are faster.

There are two distinct pieces to this:
1) RTLD is an overhead for shared libraries.
2) Some CPUs don't natively support PIC and so PIC code is larger/slower.

We can't get rid of either but maybe we should look at wiring .so's to
preferred pre-linked addresses: If the library will map at it's
desired location then most/all offsets offsets are pre-done so RTLD is
much simpler.  Linux used to do this (I'm not sure if it still does).
Tru64 Unix supports it as an option.
   
>I think we should remove libthr.a, libkse.a and libc.a, so flame on!

Note that much of the toolchain is currently statically linked so
removing libc.a may expose some edge cases in buildworld/installworld.

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20071129/95d8bd21/attachment.pgp


More information about the freebsd-arch mailing list