Strip only symbols coming from myfile.o file

Nick Clifton
Wed Jan 30 10:07:00 GMT 2008

Hi Fabio,

> I need strip, from myfile.exe file, ONLY debug symbols coming from a
> specified object file (file.o).

The way to do this is to strip file.o *before* it is linked into the myfile.exe 
executable.  ie:

   gcc -c -f file.c
   strip -g file.o
   gcc file.o <other object files> -o myfile.exe


More information about the Binutils mailing list