x86: Silence -fsanitize=undefined
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2020 13:32:24 +0000 (06:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2020 13:32:24 +0000 (06:32 -0700)
commit433953ffa1a59531a5537327a4e3ce24565e609c
tree864e26646db745dc18b6d48fb969bab45e3d3962
parentbbd2d6bf2d6627f64569a03ef290965c06e60b27
x86: Silence -fsanitize=undefined

Replace "&(EH)->elf" with "(struct elf_link_hash_entry *) (EH)" to
silence -fsanitize=undefined.

* elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Replace
"&(EH)->elf" with "(struct elf_link_hash_entry *) (EH)".
bfd/ChangeLog
bfd/elfxx-x86.h