Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2010 11:20:19 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        delphij@delphij.net, d@delphij.net, freebsd-arch@freebsd.org
Subject:   Re: Time to stop stripping binaries?
Message-ID:  <20100618082019.GE13238@deviant.kiev.zoral.com.ua>
In-Reply-To: <20100617.152630.460114267490874908.imp@bsdimp.com>
References:  <20100617.143334.584432776655157077.imp@bsdimp.com> <4C1A8C0C.8010207@delphij.net> <20100617.152630.460114267490874908.imp@bsdimp.com>

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

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

On Thu, Jun 17, 2010 at 03:26:30PM -0600, M. Warner Losh wrote:
> In message: <4C1A8C0C.8010207@delphij.net>
>             Xin LI <delphij@delphij.net> writes:
> : -----BEGIN PGP SIGNED MESSAGE-----
> : Hash: SHA256
> :=20
> : On 2010/06/17 13:33, M. Warner Losh wrote:
> : > Greetings,
> : >=20
> : > Now that disks are big, can we stop stripping binaries by default?
> : >=20
> : > I've worked up a patch that lets you set WITH_BINARY_SYMBOLS or
> : > WITHOUT_BINARY_SYMBOLS as you see fit.  We should commit it regardless
> : > of the outcome of this discussion (well, defaulting to yes or no
> : > depending on the outcome).
> : >=20
> : > Why symbols: it makes core dumps easier to debug.
> : > Why no symbols: makes the system footprint bigger.
> : >=20
> : > Since there's good arguments both ways, I thought I'd make this a
> : > knob.
> :=20
> : I think this is a good idea.
> :=20
> : A related quick question: is there any performance penalty if we ship
> : non-stripped binaries?  I think we would probably have to map the whole
> : image (including the symbols) into memory?
>=20
> No.  The symbols are tacked on the end of the file.  The system only
No, the symbols can be not at the end of the file, but this is indeed
irrelevant.

What would be very very nice to have is ability to install libraries
with symbols, while strip the binaries. Or, since even our in-tree
binutils support detached .debug files, the separate debug/ directory
with debug symbol files might be more useful in future.

For now, please, make the knob recognize three states: no symbols, only
libraries, all binaries with symbols.
> maps in the header of the binary.  It then allocates virtual memory
> space for the various sections, and then jumps to the binary[*].  It
> ignores the symbols.
>=20
> Warner
>=20
> [*] Yes, I know this grossly oversimplifies things, but the other
> details aren't relevant to this discussion...
> _______________________________________________
> freebsd-arch@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"

--/upgxG3i8WFRGOa+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkwbLEMACgkQC3+MBN1Mb4iDPgCfcC7og8aD8m3uTRDwole+OiR7
GboAoJGInSuwA6AKiL12bwlnebocIti3
=yrah
-----END PGP SIGNATURE-----

--/upgxG3i8WFRGOa+--



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