diff options
Diffstat (limited to 'bfd/elf32-metag.c')
-rw-r--r-- | bfd/elf32-metag.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c index 8f08bf6cf9..8851845384 100644 --- a/bfd/elf32-metag.c +++ b/bfd/elf32-metag.c @@ -2141,6 +2141,10 @@ elf_metag_check_relocs (bfd *abfd, while (hh->eh.root.type == bfd_link_hash_indirect || hh->eh.root.type == bfd_link_hash_warning) hh = (struct elf_metag_link_hash_entry *) hh->eh.root.u.i.link; + + /* PR15323, ref flags aren't set for references in the same + object. */ + hh->eh.root.non_ir_ref = 1; } /* Some relocs require a global offset table. */ |