* elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
[binutils-gdb.git] / bfd / elf32-mt.c
index ded95c94dfb852ee9f31fc9392353b4948528f5a..ea05c9117e4086eb321766a0941851f6e1819664 100644 (file)
@@ -453,6 +453,10 @@ mt_elf_check_relocs
          while (h->root.type == bfd_link_hash_indirect
                 || h->root.type == bfd_link_hash_warning)
            h = (struct elf_link_hash_entry *) h->root.u.i.link;
+
+         /* PR15323, ref flags aren't set for references in the same
+            object.  */
+         h->root.non_ir_ref = 1;
        }
     }