x86: Update UNDEFINED_WEAK_RESOLVED_TO_ZERO
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Sep 2017 14:29:15 +0000 (07:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Sep 2017 14:29:29 +0000 (07:29 -0700)
commitc5bce5c69721af8dae5c607e085e545cdba33ab1
tree2132bf4a5c083b2db7c0f54ee6aec6bb97068c0e
parent8fbf0ba18c8a63bd4974086f6709b2bf050b0b0b
x86: Update UNDEFINED_WEAK_RESOLVED_TO_ZERO

Since the only information which SYMBOL_REFERENCES_LOCAL_P doesn't check
is relocations, UNDEFINED_WEAK_RESOLVED_TO_ZERO only needs to check for
relocations with SYMBOL_REFERENCES_LOCAL_P.

* elf32-i386.c (elf_i386_relocate_section): Update usage of
UNDEFINED_WEAK_RESOLVED_TO_ZERO.
(elf_i386_finish_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
(elf_x86_64_finish_dynamic_symbol): Likewise.
* elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise.
(_bfd_x86_elf_fixup_symbol): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h