Subject: Re: I want all binaries stripped
To: Jeremy C. Reed <reed@reedmedia.net>
From: Mark Kirby <mark@coris.org.uk>
List: tech-pkg
Date: 06/04/2005 09:30:12
On Saturday 04 June 2005 08:11, David Laight wrote:
> On Fri, Jun 03, 2005 at 09:14:43PM -0700, Jeremy C. Reed wrote:
> > Any suggestions on getting all executables and shared libraries to be
> > stripped?
> >
> > So file(1) says "stripped"?
> >
> > For example, notice this huge space savings:
> >
> > montecristo:/usr/pkgsrc/www/curl$ ls -l /usr/lib/libcurl.so.3.0.0
> > -rwxr-xr-x 1 root root 3177005 Jun 4 03:55 /usr/lib/libcurl.so.3.0.0
> >
> > montecristo:/usr/pkgsrc/www/curl$ sudo strip /usr/lib/libcurl.so.3.0.0
> >
> > montecristo:/usr/pkgsrc/www/curl$ ls -l /usr/lib/libcurl.so.3.0.0
> > -rwxr-xr-x 1 root root 230648 Jun 4 04:01 /usr/lib/libcurl.so.3.0.0
>
> Which ELF section are you removing, I can't imagine that is just
> the normal symbol table - which might be 5-10%
>
> Maybe that library has been compiled with -g (hi gnu folks) and you are
> removing all the debugging symbols.
>
> David
If stripping results in the removal of debugging symbols this could pose a
problem if the option is not overidable.
I'm a koffice contributer so i need to build kdelibs with debugging symbols,
striping the resulting libraries would stop me from debugging problems in
koffice.
Mark
--
http://digest.coris.org.uk The NetBSD CVS Digest