This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Objcopy --only-keep-debug update


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.

Attachment: objcopy.only-keep-debug.patch.3
Description: Unix manual page


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]