From owner-freebsd-arch@FreeBSD.ORG Fri Jun 18 08:20:52 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 033CC1065674 for ; Fri, 18 Jun 2010 08:20:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9414E8FC08 for ; Fri, 18 Jun 2010 08:20:51 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o5I8KJhW058690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Jun 2010 11:20:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o5I8KJ59007976; Fri, 18 Jun 2010 11:20:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o5I8KJY0007975; Fri, 18 Jun 2010 11:20:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 18 Jun 2010 11:20:19 +0300 From: Kostik Belousov To: "M. Warner Losh" Message-ID: <20100618082019.GE13238@deviant.kiev.zoral.com.ua> References: <20100617.143334.584432776655157077.imp@bsdimp.com> <4C1A8C0C.8010207@delphij.net> <20100617.152630.460114267490874908.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/upgxG3i8WFRGOa+" Content-Disposition: inline In-Reply-To: <20100617.152630.460114267490874908.imp@bsdimp.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: delphij@delphij.net, d@delphij.net, freebsd-arch@freebsd.org Subject: Re: Time to stop stripping binaries? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2010 08:20:52 -0000 --/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 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+--