--strip-unneeded maintaining debug data.

Nick Clifton nickc@redhat.com
Tue Jan 22 22:58:00 GMT 2008


Hi Fabio,

> I need execute a --strip-unneeded command to a my executable file, but
> I also need to must maintaining its debug data.

Have you considered extracting the debug information into a separate file ? 
Have a look at the binutils' documentation for objcopy's --only-keep-debug 
command line option.

Cheers
   Nick




More information about the Binutils mailing list