This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relocs against note sections cause the x86_64 linker to abort
- 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: Tue, 6 Mar 2018 05:11:54 -0800
- Subject: Re: Relocs against note sections cause the x86_64 linker to abort
- Authentication-results: sourceware.org; auth=none
- References: <87zi3lwev5.fsf@redhat.com>
On Tue, Mar 6, 2018 at 4:46 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi H.J.
>
> I wonder if you would like to have a look at a recent Fedora bug
> report which involves the x86_64 linker generating a seg-fault when it
> is asked to produced a shared object from a file that contains
> relocations against a note section:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1552056
>
> The relocations in question are for the annobin data held in the
> .gnu.build.attributes section.
>
> It is easy enough to replace the abort() statement with an error
> message, but I wonder if this is the right thing to do. Could the
> relocs be preserved instead ? I know that they will not be processed
> by ld.so, but that should not matter as they are not needed by the
> running shared object. But if they were preserved, then they could be
> evaluated by any tool that processes the note section as part of some
> kind of static analysis.
>
Can you open a binutils bug and CC me?
Thanks.
--
H.J.