Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2008 21:38:59 -0800
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Masoom Shaikh <masoom.shaikh@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: large binary, why not strip ?
Message-ID:  <20081119053859.GA77425@icarus.home.lan>
In-Reply-To: <b10011eb0811160042w158656bld3b91a2bf7cfdd3f@mail.gmail.com>
References:  <b10011eb0811160042w158656bld3b91a2bf7cfdd3f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 16, 2008 at 08:42:12AM +0000, Masoom Shaikh wrote:
> most of the programs installed from ports have large binary size on disk
> 
> stripping em all reduces their size dramatically
> 
> I cannot see the reason for not stripping them by default ?
> 
> do I miss anything ?

I haven't seen anyone point out the downside to stripping binaries and
libraries: removal of debugging symbols.  "The apebajs program suddenly
crashes in some library, here's the now-completely-useless backtrace".
The user is then forced to go back and recompile *everything* to get
debugging symbols.

The non-stripping situation is on a per-port basis, AFAIK.  Not all
ports have WITH_DEBUG.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081119053859.GA77425>