summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/elf64-ppc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 6af33d883b..04f2c14653 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11735,7 +11735,8 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
= 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)