Relocs against note sections cause the x86_64 linker to abort
Nick Clifton
nickc@redhat.com
Tue Mar 6 12:47:00 GMT 2018
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.
Cheers
Nick
More information about the Binutils
mailing list