diff options
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 60918d9..4eba829 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -9112,6 +9112,11 @@ ppc64_elf_edit_toc (struct bfd_link_info *info) r_symndx, ibfd)) goto got_error_ret; + if (sym_sec == NULL + || sym_sec->output_section == NULL + || discarded_section (sym_sec)) + continue; + if (!SYMBOL_REFERENCES_LOCAL (info, h)) continue; |