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.

Attachment: pgpWpGMLD3tzE.pgp
Description: PGP signature

Reply via email to