* elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
[binutils-gdb.git] / bfd / elf32-cris.c
index ff2dfe336842c27d270e00f2f67021d33be4b81b..f40a07963be1a943a827fd4a1f4649b222ec058f 100644 (file)
@@ -3177,6 +3177,10 @@ cris_elf_check_relocs (bfd *abfd,
          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;
        }
 
       r_type = ELF32_R_TYPE (rel->r_info);