[PATCH] x86: Silence -fsanitize=undefined

H.J. Lu hjl.tools@gmail.com
Wed Jun 3 13:35:01 GMT 2020


On Wed, Jun 3, 2020 at 5:12 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Wed, Jun 03, 2020 at 11:51:30AM +0100, Nick Clifton wrote:
> > Which are all due to:
> >
> >   bfd/elf64-x86-64.c:3233:8: runtime error: member access within null pointer of type 'struct elf_x86_link_hash_entry'
>
> This will be "&(EH)->elf" in elfxx-x86.h:GENERATE_DYNAMIC_RELOCATION_P.
> Fixable by using "(struct elf_link_hash_entry *) (EH)" instead.
>

Thanks.  This is what I am checking in.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Silence-fsanitize-undefined.patch
Type: text/x-patch
Size: 1541 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200603/7ccbcc96/attachment.bin>


More information about the Binutils mailing list