Date: Mon, 20 Aug 2001 01:24:35 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Peter Wemm <peter@wemm.org> Cc: Kris Kennaway <kris@obsecurity.org>, hackers@FreeBSD.ORG Subject: Re: [PATCH] install -s -s(trip-me-harder) Message-ID: <20010820012435.A35600@xor.obsecurity.org> In-Reply-To: <20010820081905.8AE663811@overcee.netplex.com.au>; from peter@wemm.org on Mon, Aug 20, 2001 at 01:19:05AM -0700 References: <20010820001654.A32129@xor.obsecurity.org> <20010820081905.8AE663811@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 20, 2001 at 01:19:05AM -0700, Peter Wemm wrote: > Regarding stripping gcc2_compiled.. strip can only filter symbols from > the .symtab and .symstr symbol tables. Since strip already removes both > of those sections, the -N gcc2_compiled is useless. strip cannot modify > the .dynsym/.dynstr in the PT_LOAD sections, so those will stay regardless. > In all, I think this -R gcc2_compiled. is useless unless you're in -X or > -D mode (only remove debug symbols etc). Are you sure this is true? The binaries I've stripped in this way don't seem to contain any reference to the symbol. > gdb uses gcc2_compiled to tune its understanding of the generated code. > I suspect the fact that we remove this from the kernel is part of the reason > gdb has so much trouble understanding local variables in gdb -k mode. > (It doesn't understand trap frames either, but thats another story.) That's why I added it to '-s -s'..if you're stripping symbols like this, you probably don't care about debugging (and this would be documented in the manpage). > Removing the .note *section* is probably a good idea since it is effectively > useless in an executable. The PT_NOTE executable header is unaffected by > stripping the leftover .note section contents. Kris --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7gMlCWry0BWjoQKURAq5MAKCcJ2SIEJj2iPfZIdqfWwd5sNy/MQCdGWxk BIWoVlne5cR3kojpdQQwiJ4= =Rn6c -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010820012435.A35600>