Fix "unresolved reloc" error for NOTOC relocs

* elf64-ppc.c (ppc64_elf_relocate_section): Don't miss clearing
	unresolved_reloc on ppc_stub_plt_call_notoc.
This commit is contained in:
Alan Modra 2018-08-23 13:34:29 +09:30
parent d3f467568f
commit d0abeec8d4
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2018-08-23 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (ppc64_elf_relocate_section): Don't miss clearing
unresolved_reloc on ppc_stub_plt_call_notoc.
2018-08-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/23536

View File

@ -13887,9 +13887,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
stub_entry = NULL;
if (stub_entry != NULL
&& (stub_entry->stub_type == ppc_stub_plt_call
|| stub_entry->stub_type == ppc_stub_plt_call_r2save
|| stub_entry->stub_type == ppc_stub_plt_call_both
&& ((stub_entry->stub_type >= ppc_stub_plt_call
&& stub_entry->stub_type <= ppc_stub_plt_call_both)
|| stub_entry->stub_type == ppc_stub_plt_branch_r2off
|| stub_entry->stub_type == ppc_stub_plt_branch_both
|| stub_entry->stub_type == ppc_stub_long_branch_r2off