From: Alan Modra Date: Mon, 28 Feb 2005 23:00:40 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym X-Git-Tag: binutils-2_16-branchpoint~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ceb1f1eff43328a4d93d80fd4a392c1aadb1ef77;p=platform%2Fupstream%2Fbinutils.git * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym entry points with the func descriptor as well as undefweak. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6963415..9be74e3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-03-01 Alan Modra + + * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym + entry points with the func descriptor as well as undefweak. + 2005-02-28 Ross Ridge * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 891e032..266a2fc 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -8786,8 +8786,7 @@ ppc64_elf_size_stubs (bfd *output_bfd, sym_value = 0; /* Recognise an old ABI func code entry sym, and use the func descriptor sym instead. */ - if (hash->elf.root.type == bfd_link_hash_undefweak - && hash->elf.root.root.string[0] == '.' + if (hash->elf.root.root.string[0] == '.' && (fdh = get_fdh (hash, htab)) != NULL) { if (fdh->elf.root.type == bfd_link_hash_defined