This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Objcopy --only-keep-debug update
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Fri, 7 Aug 2015 08:56:23 -0700
- Subject: Re: RFC: Objcopy --only-keep-debug update
- Authentication-results: sourceware.org; auth=none
- References: <87oaingwhv dot fsf at redhat dot com>
On Tue, Aug 4, 2015 at 3:48 AM, Nick Clifton <nickc@redhat.com> wrote:
> 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.
>
This breaks binutils:
https://sourceware.org/bugzilla/show_bug.cgi?id=18785
--
H.J.