diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-09-07 13:56:07 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-09-07 13:56:07 +0000 |
commit | e53e633a3f09f7fba923872f536a4f4276d6ea2c (patch) | |
tree | 462d68c1d1c62d2a724ed9616c61e2f55b467b02 /bfd/elf64-ppc.c | |
parent | 8ac81feb44e603695f2c04f243453b159382dcf4 (diff) | |
download | gdb-e53e633a3f09f7fba923872f536a4f4276d6ea2c.tar.gz |
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 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"), |