RFC: Fixing objcopy --only-keep-debug
Nicholas Clifton
nickc@redhat.com
Tue Jul 28 11:42:00 GMT 2015
Hi Guys,
> It seems to me that "objcopy --only-keep-debug" is not doing what it
> is supposed to do, ie strip all non-debug sections, leaving a valid,
> but truncated binary file:
*sigh* It has been pointed out to me that all of these sections are
needed so that other tools can match up the debuginfo file with the
(possibly relocated) executable file. So I am withdrawing this patch,
although I think I might update the description of the --only-keep-debug
option in the documentation instead...
Cheers
Nick
More information about the Binutils
mailing list