[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unstripped files

On Mon, Nov 16, 1998 at 08:44:01PM +0100, Holger Eitzenberger wrote:
> On Mon, Nov 16, 1998 at 12:59:22PM +0100, Michael Meskes wrote:
> > I just did a quick find of unstripped binaries on my machine (using
> > findstrip). And here's what I found (after deleting obviously correct
> > entries like modules):
> > 
> > ./lib/ld-linux.so.1.9.9
> > ./lib/ld-2.0.7.so
> > 
> > Can these be stripped?
>   Shared libraries and executables can savely be stripped ('strip
> --unneeded'). However, stripping an object file (*.o) will corrupt the
> it.

Shared libraries can be striped with 'strip --unneeded'.
Static libraries and *.o -- only with 'strip --debug'.

ld*.so can be striped with 'strip --debug', but 'strip --unneeded ld-2.0.7.so'
breaks debugging of dynamically linked programs by gdb, so don't do that
(really, gdb needs only one or symbols from ld-linux.so.2 but I don't 
remember which ones)

Ilya Ovchinnikov       -------------------------------------
                          Internet Service and Information
                          Providing Center of Pushchino 
 e-mail: ilya@psn.ru      Research Center of RAS
 phone: +7(0967)73-90-03  Pushchino, Moscow region, Russia.

Reply to: