PowerPC64 DT_RELR ELFv1
authorAlan Modra <amodra@gmail.com>
Wed, 19 Jan 2022 02:49:51 +0000 (13:19 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Jan 2022 06:15:45 +0000 (16:45 +1030)
commit8ffb6df2aa60af2fae5378e2520fbf6bdd0b0962
tree3ab7df9a0ea08ef13372b813c0599d9bee521e2f
parentedca615ac1901ddab9beec51a4bcf8395c307109
PowerPC64 DT_RELR ELFv1

More fun with R_PPC64_NONE found in .opd.  Fixed by the
allocate_dynrelocs and ppc64_elf_size_dynamic_sections changes, and
since we are doing ifunc, opd and SYMBOL_REFERENCES_LOCAL tests later,
don't duplicate that work in check_relocs.

* elf64-ppc.c (ppc64_elf_check_relocs): Remove opd and ifunc
conditions for rel_count.
(dec_dynrel_count): Likewise.
(allocate_dynrelocs): Test for opd and ifunc when allocating
relative relocs.
(ppc64_elf_size_dynamic_sections): Likewise.
bfd/elf64-ppc.c