PR29540, R_PPC64_NONE in .rela.dyn when linking Linux vdso
authorAlan Modra <amodra@gmail.com>
Sat, 10 Sep 2022 03:28:44 +0000 (12:58 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 14 Sep 2022 00:49:56 +0000 (10:19 +0930)
commit365bf300da35c11e27bb8cdd3964f82e3d32f094
treebed18aa3fe970f3810ef06691cf0c2263616d992
parent620fe928315c5eb95b990c13b92273865501e50e
PR29540, R_PPC64_NONE in .rela.dyn when linking Linux vdso

PR 29540
* elf64-ppc.c (allocate_dynrelocs): Don't alloc space for relocs
against discarded sections.
(ppc64_elf_size_dynamic_sections): Use standard test for discarded
sections.
* elf32-ppc.c (allocate_dynrelocs): Don't alloc space for relocs
against discarded sections.
(ppc_elf_size_dynamic_sections): Use standard test for discarded
sections.
bfd/elf32-ppc.c
bfd/elf64-ppc.c