PR ld/12727
authorAlan Modra <amodra@gmail.com>
Wed, 4 May 2011 00:31:41 +0000 (00:31 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 4 May 2011 00:31:41 +0000 (00:31 +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 471118388f4471713347a93fbc2baf72b10ad329..9437475c6070826b2341fcd03c6f82124bc90d44 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-05-03  Paul Brook  <paul@codesourcery.com>
 
 
index 13ae9a227cf5f8df2759f932b81f788850538758..543a7272b286e4c48d273dda03f9cc38b44584a2 100644 (file)
@@ -9789,6 +9789,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.  */