From owner-freebsd-hackers Mon Aug 20 1:24:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-7.dsl.lsan03.pacbell.net [63.207.60.7]) by hub.freebsd.org (Postfix) with ESMTP id 5535337B401 for ; Mon, 20 Aug 2001 01:24:36 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C391466D37; Mon, 20 Aug 2001 01:24:35 -0700 (PDT) Date: Mon, 20 Aug 2001 01:24:35 -0700 From: Kris Kennaway To: Peter Wemm Cc: Kris Kennaway , hackers@FreeBSD.ORG Subject: Re: [PATCH] install -s -s(trip-me-harder) Message-ID: <20010820012435.A35600@xor.obsecurity.org> References: <20010820001654.A32129@xor.obsecurity.org> <20010820081905.8AE663811@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010820081905.8AE663811@overcee.netplex.com.au>; from peter@wemm.org on Mon, Aug 20, 2001 at 01:19:05AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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