PowerPC ld segfault on script discarding dynamic sections
authorAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2017 21:40:58 +0000 (08:10 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 21 Feb 2017 22:14:41 +0000 (08:44 +1030)
commit6528b6eba85f044667876a2ad77d4612a9e5fc65
tree2f8b669ea8177a1d29ba53b18b8ed5c62af5dd61
parent1b90b1390679473dd84416e462afa1587769ceec
PowerPC ld segfault on script discarding dynamic sections

bfd/
* elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
on .got or .plt output section being discarded by script.
* elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise.  Move
vxworks splt temp.
gold/
* powerpc.cc (Target_powerpc::make_iplt_section): Check that
output_section exists before attempting add_output_section_data.
(Target_powerpc::make_brlt_section): Likewise.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c
gold/ChangeLog
gold/powerpc.cc