Date: Mon, 12 Mar 2012 14:26:16 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r232862 - head/libexec/rtld-elf Message-ID: <20120312122616.GB75778@deviant.kiev.zoral.com.ua> In-Reply-To: <201203121216.q2CCG8gG061304@svn.freebsd.org> References: <201203121216.q2CCG8gG061304@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--P4y1Y0PhW0Op+SVW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Log: > Rtld on diet part 2: > =20 > Do not use stdio for libmap.conf read. Directly map the file and > parse lines from the mappings. > =20 > 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. --P4y1Y0PhW0Op+SVW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk9d62gACgkQC3+MBN1Mb4hhiwCgw6r5Lw52yOeF2IKiRZl+Bc2b GDAAniL2uelBXD9BEEEURmpED6eu9g9l =MHFk -----END PGP SIGNATURE----- --P4y1Y0PhW0Op+SVW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120312122616.GB75778>