daily update
[deliverable/binutils-gdb.git] / bfd / elf32-ppc.c
index c1b53146a37c8b9178607886b468274ad6f6f9b0..d6aae81d8e3e402d95cf8311d8220525caf63544 100644 (file)
@@ -3911,6 +3911,10 @@ ppc_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;
        }
 
       /* If a relocation refers to _GLOBAL_OFFSET_TABLE_, create the .got.
@@ -4420,7 +4424,7 @@ ppc_elf_check_relocs (bfd *abfd,
          if ((info->shared
               && (must_be_dyn_reloc (info, r_type)
                   || (h != NULL
-                      && (! info->symbolic
+                      && (!SYMBOLIC_BIND (info, h)
                           || h->root.type == bfd_link_hash_defweak
                           || !h->def_regular))))
              || (ELIMINATE_COPY_RELOCS
This page took 0.033507 seconds and 4 git commands to generate.