daily update
[binutils-gdb.git] / bfd / elf32-hppa.c
index 8d21cee53d82abdb39106a50e70a5b2ec7cf81b8..4ffa3d2a78f818126281d47fa4c8d702c31ecbb9 100644 (file)
@@ -1169,6 +1169,10 @@ elf32_hppa_check_relocs (bfd *abfd,
          while (hh->eh.root.type == bfd_link_hash_indirect
                 || hh->eh.root.type == bfd_link_hash_warning)
            hh = hppa_elf_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;
        }
 
       r_type = ELF32_R_TYPE (rela->r_info);