Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2007 21:51:33 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: RFC: libkse*.a in 7.0
Message-ID:  <20071129105133.GS50167@server.vk2pj.dyndns.org>
In-Reply-To: <Pine.GSO.4.64.0711281651360.24547@sea.ntplx.net>
References:  <20071128211022.GA74762@lor.one-eyed-alien.net> <20071128213947.Q7555@fledge.watson.org> <Pine.GSO.4.64.0711281651360.24547@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--dMdWWqg3F2Dv/qfw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
  =20
>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.

--=20
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.

--dMdWWqg3F2Dv/qfw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHTpm1/opHv/APuIcRAl2sAJ98u2sWkvhNge2VZWrbAVgZCCFdJgCfe32n
+RXPEf3PJS1nGio01aiPqv0=
=EYUT
-----END PGP SIGNATURE-----

--dMdWWqg3F2Dv/qfw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071129105133.GS50167>