Delete powerpc64 symbol weakref field
authorAlan Modra <amodra@gmail.com>
Wed, 22 Nov 2017 07:02:50 +0000 (17:32 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Nov 2017 12:11:43 +0000 (22:41 +1030)
commitab2477e15cbe067ff119f1bb5dea05de3cadbdd5
treedbeba2d3022be787d76a7ad2070333b136ad8706
parent60d67dc84bbc7d73672d297d714f8a4a0547618d
Delete powerpc64 symbol weakref field

Now that u.alias is circular, weakref just duplicates its function.
Also, function symbols shouldn't be on the alias list so there is no
need to use alias_readonly_dynrelocs with them.

* elf64-ppc.c (struct ppc_link_hash_entry): Delete weakref field.
(ppc64_elf_copy_indirect_symbol): Don't set weakref.
(alias_readonly_dynrelocs): Use u.alias rather than weakref.
(ppc64_elf_adjust_dynamic_symbol): Don't use
alias_readonly_dynrelocs for function symbols.
bfd/ChangeLog
bfd/elf64-ppc.c