RFC: Objcopy --only-keep-debug update
Nick Clifton
nickc@redhat.com
Tue Aug 4 10:48:00 GMT 2015
Hi Guys,
Thanks for the comments on the previous patch. I am attaching a third
iteration of this patch, which I hope will satisfy everyone. In this
version I have followed Alan's suggestion of detecting the change in
the _bfd_elf_copy_private_bfd_data function, and I have fixed the text
in binutils.texi describing how --only-keep-debug operates.
Any more comments or suggestions ?
Cheers
Nick
bfd/ChangeLog
2015-08-04 Nick Clifton <nickc@redhat.com>
* elf.c (_bfd_elf_copy_private_bfd_data): Copy the sh_link and
sh_info fields of sections whose type has been changed to
SHT_NOBITS.
binutils/ChangeLog
2015-08-04 Nick Clifton <nickc@redhat.com>
* doc/binutils.texi: Document that the --only-keep-debug option
to strip and objcopy preserves the section headers of stripped
sections.
binutils/testsuite/ChangeLog
2015-08-04 Nick Clifton <nickc@redhat.com>
* binutils-all/objcopy.exp (keep_debug_symbols_and_check_links):
New proc. Checks that debug-info-only binaries retain the
sh_link field in stripped sections.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objcopy.only-keep-debug.patch.3
Type: application/x-troff-man
Size: 7869 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150804/3174d86d/attachment.3>
More information about the Binutils
mailing list