* elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
authorAlan Modra <amodra@gmail.com>
Sat, 23 Feb 2008 05:50:28 +0000 (05:50 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 23 Feb 2008 05:50:28 +0000 (05:50 +0000)
bfd/ChangeLog
bfd/elf32-ppc.c

index b47d133..9a182a4 100644 (file)
@@ -1,5 +1,9 @@
 2008-02-23  Alan Modra  <amodra@bigpond.net.au>
 
+       * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
+
+2008-02-23  Alan Modra  <amodra@bigpond.net.au>
+
        * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
        pointer_equality_needed.
        (ppc_elf_check_relocs): Split out non-branch relocs from others
index a859adf..147efe2 100644 (file)
@@ -3464,6 +3464,9 @@ ppc_elf_check_relocs (bfd *abfd,
                 a function defined in a dynamic object.  */
              if (!update_plt_info (abfd, h, NULL, 0))
                return FALSE;
+
+             /* We may need a copy reloc too.  */
+             h->non_got_ref = 1;
            }
 
        dodyn: