Don't treat .opd section specially when ELFv2
authorAlan Modra <amodra@gmail.com>
Thu, 1 Sep 2016 05:26:52 +0000 (14:56 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 1 Sep 2016 05:40:07 +0000 (15:10 +0930)
commitcd285db582fb1bd59db01e3dc29511d08999d05b
tree1bed028ad14bef4d082f8cc35c6ac8f952efa363
parent0318424c7bd637453be8178506c18f24858ad7f6
Don't treat .opd section specially when ELFv2

Fixes a gdb segfault if a section named .opd is found in ELFv2 binaries.

* elf64-ppc.c (synthetic_opd): New static var.
(compare_symbols): Don't treat symbols in .opd specially for ELFv2.
(ppc64_elf_get_synthetic_symtab): Likewise.  Comment.
bfd/ChangeLog
bfd/elf64-ppc.c