save_res stubs aren't written in ppc_build_one_stub, their offsets
(which are zero) should not be checked.
* elf64-ppc.c (ppc_build_one_stub): Don't check save_res offsets.
= ppc64_elf_section_data (stub_entry->group->stub_sec);
++htab->stub_id;
if (stub_entry->id != htab->stub_id
- || stub_entry->stub_offset < stub_entry->group->stub_sec->size)
+ || (stub_entry->type.main != ppc_stub_save_res
+ && stub_entry->stub_offset < stub_entry->group->stub_sec->size))
{
BFD_ASSERT (0);
if (stub_entry->id != htab->stub_id)