summaryrefslogtreecommitdiff
path: root/bfd/elf32-m68hc1x.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-07 15:46:07 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-11 13:57:33 -0700
commit6a8d6610067b80db4e1a7f66055f17223f2e8a2c (patch)
treeaafa63abfb06f2031b60b7eca12f3d2a7dc2da1f /bfd/elf32-m68hc1x.c
parent52d0a7cdc4dfb8fc5216f89e5c54190a8784a77c (diff)
downloadbinutils-gdb-users/hjl/pr22269.tar.gz
sparc: Remove UNDEFINED_WEAK_RESOLVED_TO_ZERO definitionusers/hjl/pr22269
Since UNDEFINED_WEAK_RESOLVED_TO_ZERO has been added to elf-bfd.h, the private copy of UNDEFINED_WEAK_RESOLVED_TO_ZERO can be removed from elfxx-sparc.c. Also replace has_got_reloc and has_non_got_reloc with zero_undefweak in elf_link_hash_entry: Bit 0: Symbol has no GOT nor PLT relocations. Bit 1: Symbol has non-GOT/non-PLT relocations in text sections. zero_undefweak is initialized to 1 and undefined weak symbol should be resolved to 0 if zero_undefweak > 0. * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Removed. (_bfd_sparc_elf_link_hash_entry): Remove has_got_reloc and has_non_got_reloc. (link_hash_newfunc): Don't initialize has_got_reloc nor has_non_got_reloc. (_bfd_sparc_elf_copy_indirect_symbol): Don't copy has_got_reloc nor has_non_got_reloc. (_bfd_sparc_elf_check_relocs): Replace has_got_reloc and has_non_got_reloc with zero_undefweak. (_bfd_sparc_elf_fixup_symbol): Updated. (allocate_dynrelocs): Likewise. (_bfd_sparc_elf_relocate_section): Likewise. (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
Diffstat (limited to 'bfd/elf32-m68hc1x.c')
0 files changed, 0 insertions, 0 deletions