From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 09:11:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FE29106568E for ; Sun, 16 Nov 2008 09:11:15 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D35D08FC12 for ; Sun, 16 Nov 2008 09:11:14 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mAG9Axnj026389; Sun, 16 Nov 2008 09:11:07 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mAG9Axnj026389 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1226826667; bh=1kU8szLxbrYVlK JVbv+NR0PBvdaHI6bkZbvOXG4IXDM=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<491FE395.404@infracaninophile.co.uk>|Date:=20Sun,=2016= 20Nov=202008=2009:10:45=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User-Age nt:=20Thunderbird=202.0.0.17=20(X11/20080929)|MIME-Version:=201.0|T o:=20Masoom=20Shaikh=20|CC:=20freebsd-ques tions@freebsd.org|Subject:=20Re:=20large=20binary,=20why=20not=20st rip=20?|References:=20|In-Reply-To:=20|X-Enigmail-Version:=200.95.6|Content-Type: =20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D "application/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig 4740C458B78A4D2F00BD7315"; b=jvgiL/HJiutO1ZIS0a6h4kGg+jGnX8Jnmqo1nY 2fQVjuYAjJfC4vc6I7T8Zi6edshBwrihbhjI1cKJK7VIu9w7yAAhnKFq5UftZDSIUZg jQCiao4/2NQ9sn36F5lXIR69ZbJ181BiRyiN4lC/2A026S8tSjlGSneq9L+4kqQHwM= Message-ID: <491FE395.404@infracaninophile.co.uk> Date: Sun, 16 Nov 2008 09:10:45 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: Masoom Shaikh References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4740C458B78A4D2F00BD7315" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 16 Nov 2008 09:11:07 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.1/8636/Sat Nov 15 05:05:47 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,LONGWORDS,NO_RELAYS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: large binary, why not strip ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 09:11:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4740C458B78A4D2F00BD7315 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Masoom Shaikh wrote: > most of the programs installed from ports have large binary size on dis= k >=20 > stripping em all reduces their size dramatically >=20 > I cannot see the reason for not stripping them by default ? >=20 > do I miss anything ? Yes. Binaries installed from the ports system /are/ already stripped by default. The official position is given here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/install= =2Ehtml#INSTALL-STRIP In practice it seems there are some exceptions -- this is what I found=20 in /usr/local/bin on my machine (and pretty much everything in=20 /usr/local/bin was installed from ports): happy-idiot-talk:/usr/local/bin:% file * | grep ', not stripped' | cut -f= 1 -d: a2p adnsheloex adnsresfilter cancel cupstestdsc cupstestppd derb dkim-stats dkim-testkey dkim-testssp dumpreg encode_keychange fixnt genbrk gencnval genctd genrb gocr lp lpoptions lppasswd lpq lpr lprm lpstat makeconv nmap omshell openssl pdfimage php php-cgi pkgdata restorefont restorepalette restoretextmode snmpbulkget snmpdelta snmpdf snmpnetstat snmptable snmpusm snmpvacm sqlite3 swig swig1.3 tclsh8.4 uconv wish8.4 workmanir Arguably the fact that these programs aren't stripped is a bug that should be reported to the port maintainers. As far as I know, there is no circumstance where a binary has to be left unstripped in order to operate correctly, other than when it is required to run it under gdb(1). Hmmm.... that's something the ports build system should=20 probably check on and complain about. On the other hand, compare that to the number of binaries that are stripped: happy-idiot-talk:/usr/local/bin:% file * | grep ', stripped' | wc -l=20 1206 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig4740C458B78A4D2F00BD7315 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkkf46MACgkQ8Mjk52CukIyZqQCfT8MSrTYSO1VATuHJdYV57GTS mZ0An08btqsNttTa4NPbCpKcDc49hbgp =bP9Q -----END PGP SIGNATURE----- --------------enig4740C458B78A4D2F00BD7315--