From: Alan Modra Date: Wed, 4 May 2011 00:31:41 +0000 (+0000) Subject: PR ld/12727 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9507a174f5ab48ee28522efc30ff10cd25f0d4b8;hp=7efa8b093e05426b066a0d52cc9256d3eda72f0d;p=binutils-gdb.git PR ld/12727 * elf64-ppc.c (ppc_build_one_stub ): Clear was_undefined on dot-symbols. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 471118388f4..9437475c607 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2011-05-04 Alan Modra + + PR ld/12727 + * elf64-ppc.c (ppc_build_one_stub ): Clear + was_undefined on dot-symbols. + 2011-05-03 Paul Brook diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 13ae9a227cf..543a7272b28 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -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. */