diff options
author | Alan Modra <amodra@gmail.com> | 2011-09-07 13:56:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-09-07 13:56:09 +0000 |
commit | 28942f62934c4f84542677844cddd570881f4a37 (patch) | |
tree | 292dba320b1cc1233322a67b2e60a3bb8b912a37 /bfd/elf64-ppc.c | |
parent | 6aa27652a77b5dba33707448c56ec538249a0f6e (diff) | |
download | gdb-28942f62934c4f84542677844cddd570881f4a37.zip gdb-28942f62934c4f84542677844cddd570881f4a37.tar.gz gdb-28942f62934c4f84542677844cddd570881f4a37.tar.bz2 |
PR ld/13131
* bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table
is initialized.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 8c14c0c..5992f08 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"), |