PowerPC64, Don't copy weak symbol dyn_relocs to weakdef.
authorAlan Modra <amodra@gmail.com>
Fri, 19 Aug 2016 01:36:53 +0000 (11:06 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 19 Aug 2016 01:36:53 +0000 (11:06 +0930)
commitd311bc8bf85f8358df21301fe8a357aa1212f80c
treef588003f96a1c10700bec9c4e59e9631b7d82185
parent8a2058b5e3318a337a6fecd61b91349d1131758e
PowerPC64, Don't copy weak symbol dyn_relocs to weakdef.

At the cost of an extra field in the symbol table hash entries, this
simplification to the relocate_section dynamic reloc test should help
maintainability.

* elf64-ppc.c (struct ppc_link_hash_entry): Add weakref.
(ppc64_elf_copy_indirect_symbol): Set weakref.  Don't merge
dyn_relocs for weakdefs.
(alias_readonly_dynrelocs): New function.
(ppc64_elf_adjust_dynamic_symbol): Use alias_readonly_dynrelocs.
(ppc64_elf_relocate_section): Simplify condition under which
dyn_relocs are emitted.
bfd/ChangeLog
bfd/elf64-ppc.c