Subject: Re: I want all binaries stripped
To: Jeremy C. Reed <reed@reedmedia.net>
From: David Laight <david@l8s.co.uk>
List: tech-pkg
Date: 06/04/2005 09:11:02
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

-- 
David Laight: david@l8s.co.uk