PR ld/15323
[deliverable/binutils-gdb.git] / bfd / elf64-ppc.c
index 2826d83f61f51d21ed0774b45a048258cd5b04a4..a4d483a9fa588f8320f5cbc9c158aaeef799d016 100644 (file)
@@ -5004,6 +5004,10 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
        {
          h = sym_hashes[r_symndx - symtab_hdr->sh_info];
          h = elf_follow_link (h);
+
+         /* PR15323, ref flags aren't set for references in the same
+            object.  */
+         h->root.non_ir_ref = 1;
        }
 
       tls_type = 0;
This page took 0.028094 seconds and 4 git commands to generate.