Date: Sun, 16 Nov 2008 09:10:45 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Masoom Shaikh <masoom.shaikh@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: large binary, why not strip ? Message-ID: <491FE395.404@infracaninophile.co.uk> In-Reply-To: <b10011eb0811160042w158656bld3b91a2bf7cfdd3f@mail.gmail.com> References: <b10011eb0811160042w158656bld3b91a2bf7cfdd3f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?491FE395.404>