]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR ld/12727
authorAlan Modra <amodra@gmail.com>
Wed, 4 May 2011 00:34:13 +0000 (00:34 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 4 May 2011 00:34:13 +0000 (00:34 +0000)
* elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
was_undefined on dot-symbols.

bfd/ChangeLog
bfd/elf64-ppc.c

index b36b15b686dfc39f72efd71f78cc59e072eeada3..6dee35066942932e26c0e07f88136f59ce38667e 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-04  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12727
+       * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
+       was_undefined on dot-symbols.
+
 2011-04-27  Alan Modra  <amodra@gmail.com>
 
        Backport from mainline
index eb07b1fb7c7bf19690c32dc2cf6326a313f846a0..8c9132ce69d74c96635d86e99228ba41d2244f35 100644 (file)
@@ -9788,6 +9788,8 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
             these checks could now disappear.  */
          if (fh->elf.root.type == bfd_link_hash_undefined)
            fh->elf.root.type = bfd_link_hash_undefweak;
+         /* Stop undo_symbol_twiddle changing it back to undefined.  */
+         fh->was_undefined = 0;
        }
 
       /* Now build the stub.  */