daily update
[binutils-gdb.git] / bfd / elf32-m68k.c
index 01b5d67d68ddda48d00d0aa3bb08ec4b089be1c7..b72bc83cd6adc19bad0d95613c29816921ea1a09 100644 (file)
@@ -2584,6 +2584,10 @@ elf_m68k_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;
        }
 
       switch (ELF32_R_TYPE (rel->r_info))