Strip only symbols coming from myfile.o file

Fabio Dell'Aria
Tue Jan 22 21:30:00 GMT 2008

Hi to all,

I have a compiled executable file named myfile.exe.

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

To do this I have try the following 2 commands (without any success):

objdump -G file.o > dbgfile     (to store file.o debug symbols in the
dbgfile file)
obj_copy --strip-symbols=dbgfile myfile.exe myfile.exe     (to strip
dbgfile file symbols)

Can someone help me please?

Best regards...

Fabio Dell'Aria.

More information about the Binutils mailing list