daily update
[binutils-gdb.git] / bfd / elf64-s390.c
index d939a3d68b45687863e424fca65de49fb482c0cd..f2c396f5dd9bc548f8f6d9059f1342fbd5483d36 100644 (file)
@@ -950,6 +950,10 @@ elf_s390_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;
        }
 
       /* Create got section and local_got_refcounts array if they