svn commit: r232862 - head/libexec/rtld-elf
Konstantin Belousov
kostikbel at gmail.com
Mon Mar 12 12:26:25 UTC 2012
On Mon, Mar 12, 2012 at 12:16:08PM +0000, Konstantin Belousov wrote:
> Author: kib
> Date: Mon Mar 12 12:16:08 2012
> New Revision: 232862
> URL: http://svn.freebsd.org/changeset/base/232862
>
> Log:
> Rtld on diet part 2:
>
> Do not use stdio for libmap.conf read. Directly map the file and
> parse lines from the mappings.
>
> Reviewed by: kan
> MFC after: 3 weeks
Sample sizes of the ld-elf.so.1 on amd64 before (/libexec/ld-elf.so.1)
and after the removal of stdio:
$ size /libexec/ld-elf.so.1 ld-elf.so.1
text data bss dec hex filename
225195 15648 58448 299291 4911b /libexec/ld-elf.so.1
133981 9124 18072 161177 27599 ld-elf.so.1
Also, stdio and locale stuff recently requires fully initialized
C runtime (like TLS), which is not true for rtld and relatively hard
to provide at early stages of binary activation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120312/2ed25225/attachment.pgp
More information about the svn-src-all
mailing list