From: Alan Modra Date: Wed, 7 Sep 2011 13:56:09 +0000 (+0000) Subject: PR ld/13131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28942f62934c4f84542677844cddd570881f4a37;p=binutils-gdb.git PR ld/13131 * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table is initialized. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0052fe51b95..523fe170e78 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-09-07 Alan Modra + + PR ld/13131 + * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table + is initialized. + 2011-09-06 Alan Modra PR ld/13131 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 8c14c0cd6ba..5992f0824c7 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -8382,6 +8382,8 @@ ppc64_elf_edit_toc (struct bfd_link_info *info) break; default: + if (!ppc64_elf_howto_table[R_PPC64_ADDR32]) + ppc_howto_init (); info->callbacks->einfo (_("%P: %H: %s relocation references " "optimized away TOC entry\n"),