PR17488, powerpc64-linux-ld segfault
authorAlan Modra <amodra@gmail.com>
Wed, 15 Oct 2014 23:08:09 +0000 (09:38 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Oct 2014 06:12:56 +0000 (16:42 +1030)
commit16bfc7bb18b272d5a4e40ee37ced21e4b9a8fbb4
treef0cbed7081c4aaf475bb73e169d447b2f3952973
parent986b34e134011175be26b4504ba8a4f8e38de2bf
PR17488, powerpc64-linux-ld segfault

For binary ouput, we don't have an ELF bfd output so can't access
elf_elfheader.  The elf64-ppc.c changes are really just a tidy,
triggered by looking at all places where the abiversion bits are
accessed.

bfd/
* elf64-ppc.c (ppc64_elf_before_check_relocs): Do .opd processing
even when output is not ppc64 ELF.  Remove redundant tests on
type of input bfd.
ld/
PR 17488
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
to access ELF header e_flags when not ppc64 ELF output.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/ChangeLog
ld/emultempl/ppc64elf.em