compile glibc without most features
Philippe Troin
phil@fifi.org
Sat Apr 29 18:05:00 GMT 2000
Sascha Ziemann <szi@aibon.ping.de> writes:
> Wolfram Gloger <Wolfram.Gloger@dent.med.uni-muenchen.de> writes:
>
> | Debian, for example, has done it quite easily. In a gzip-compressed
> | boot image, glibc-2.1.3.so (the standard build) doesn't take more than
> | 370k or so.
>
> This is my one:
>
> -rwxr-xr-x 1 szi ego 1176701 Apr 28 11:36 libc-2.1.3.so*
>
> Please tell me the trick to create a 370k file.
Debian uses a trick where first, all programs on the boot disk are
linked statically, then the modules (.o) that are actually used (as
reported by ld -map) are put into a shared library.
Hence libc.so is still shared amongst executables and does not contain
any superfluous code.
Phil.
More information about the Libc-alpha
mailing list