Pass GOT_RELOC to UNDEFINED_WEAK_RESOLVED_TO_ZERO
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 15:17:12 +0000 (08:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 15:21:51 +0000 (08:21 -0700)
commite62b9723fdfcf655ecbd46ea455567593e333f47
treefdea551e249c87e854d8338ccb0afc6374dbcecd
parent010f98a5859620001aed9f27f213ed681c73a59a
Pass GOT_RELOC to UNDEFINED_WEAK_RESOLVED_TO_ZERO

When UNDEFINED_WEAK_RESOLVED_TO_ZERO is checked to convert load via
GOT, has_got_reloc is always TRUE.  This patch adds GOT_RELOC, which
is TRUE in x86 convert_load, to UNDEFINED_WEAK_RESOLVED_TO_ZERO.

* elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
and replace (EH)->has_got_reloc with GOT_RELOC.
(elf_i386_fixup_symbol): Pass has_got_reloc to
UNDEFINED_WEAK_RESOLVED_TO_ZERO.
(elf_i386_allocate_dynrelocs): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(elf_i386_convert_load): Pass TRUE to
UNDEFINED_WEAK_RESOLVED_TO_ZERO.
* elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
(elf_x86_64_fixup_symbol): Pass has_got_reloc to
UNDEFINED_WEAK_RESOLVED_TO_ZERO.
(elf_x86_64_allocate_dynrelocs): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_finish_dynamic_symbol): Likewise.
(elf_x86_64_convert_load): Pass TRUE to
UNDEFINED_WEAK_RESOLVED_TO_ZERO.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
This page took 0.02505 seconds and 4 git commands to generate.