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: Relocs against note sections cause the x86_64 linker to abort


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.


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