From owner-freebsd-arch@FreeBSD.ORG Thu Jun 17 20:56:58 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 7DAF0106566B for ; Thu, 17 Jun 2010 20:56:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 170588FC14 for ; Thu, 17 Jun 2010 20:56:58 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id F34F8A571E2; Fri, 18 Jun 2010 04:56:56 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id dsJqPw-KZ9NW; Fri, 18 Jun 2010 04:56:50 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 149C9A56C4C; Fri, 18 Jun 2010 04:56:48 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp: content-type:content-transfer-encoding; b=kc6ClIPAm+5lXvfGzKeNZ1NcxTqT0+ezSJ+BX2Q1YrofnzXva/Xb3VCp4HEY+kqDW OYJxzA8I3zHlf7DzstT+w== Message-ID: <4C1A8C0C.8010207@delphij.net> Date: Thu, 17 Jun 2010 13:56:44 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100602 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: freebsd-arch@freebsd.org References: <20100617.143334.584432776655157077.imp@bsdimp.com> In-Reply-To: <20100617.143334.584432776655157077.imp@bsdimp.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Time to stop stripping binaries? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2010 20:56:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/06/17 13:33, M. Warner Losh wrote: > Greetings, > > Now that disks are big, can we stop stripping binaries by default? > > 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). > > Why symbols: it makes core dumps easier to debug. > Why no symbols: makes the system footprint bigger. > > Since there's good arguments both ways, I thought I'd make this a > knob. I think this is a good idea. 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? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBCAAGBQJMGowMAAoJEATO+BI/yjfBbdcH/3V+bu1wHM+d6PgouWXNI7oh VkcZr5DHxyMe0IXLce4YTfA1CgIO+0YINYDq4VJ8zRVaqY+Ni6Wl5EhZNkV+YXWY Fb9+X0xavl5Cu6bTibF+7ml1dWTgcquWIqC7+VhR5itnOB0sZeTVjTQRJ72Unc79 k+DAKdHqMajhPwBnMmYPcUphSzTFcYRAi2z19g9cW/TNMg2vO6ENk6sNFQY1ro0V n4x2tLShA72ZTgSAMs3++OgX684eg0oAwFI9XKv0pols12KRoUYYynVi4qPvUWnv 3c2HmGIYYPIcGAHE9DqAv0k1RGxCB0xhg9X1VJ69UVNH7VwZ/1C15nmsrKZ69dg= =bVeA -----END PGP SIGNATURE-----