From: Alan Modra Date: Wed, 4 May 2011 00:34:13 +0000 (+0000) Subject: PR ld/12727 X-Git-Tag: binutils-2_21_1~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6239f1ebece933c47dbb2b05b55fa59a9d6c46c8;p=thirdparty%2Fbinutils-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 b36b15b686d..6dee3506694 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-04-27 Alan Modra Backport from mainline diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index eb07b1fb7c7..8c9132ce69d 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -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. */