[KLUG Programming] strip'ing
Robert G. Brown
programming@kalamazoolinux.org
Tue, 28 Oct 2003 16:13:43 -0500
On 28 Oct 2003 15:25:57 -0500, Bruce Smith <bruce@armintl.com> wrote:
>The "strip" command has some different options:
>
> --strip-all to remove all symbols
> --strip-debug to only remove debugging symbols
> --strip-unneeded ...
>
>If I'm trying to save space on a bunch of binaries, is there any reason
>NOT to use --strip-all? Is there any chance it could cause problems
>with program execution?
I believe you want "strip unneeded"; I'm not up on what symbols may be
used by all the run-time loaders, especially for dynamic library usse.
Also, use the -o option so you keep the original executable while testing
the stripped binary. You can also compare file sizes to see how much room
you're stripping.
Regards,
---> RGB <---