[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22374] Unnecessary PLT entries
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/22374] Unnecessary PLT entries |
Date: |
Wed, 01 Nov 2017 08:19:10 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22374
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3988aed54acce3c682a877b51b0e09cce1079e81
commit 3988aed54acce3c682a877b51b0e09cce1079e81
Author: Alan Modra <address@hidden>
Date: Tue Oct 31 22:13:21 2017 +1030
PR22374, PowerPC unnecessary PLT entries
We don't need a PLT entry when function pointer initialization in a
read/write section is the only reference to a given function symbol.
This patch prevents the unnecessary PLT entry, and ensures no dynamic
relocs are emitted when UNDEFWEAK_NO_DYNAMIC_RELOC says so.
bfd/
PR 22374
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't create a plt
entry when just a dynamic reloc can serve. Ensure no dynamic
relocations when UNDEFWEAK_NO_DYNAMIC_RELOC by setting non_got_ref.
Expand and move the non_got_ref comment.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
ld/
* testsuite/ld-powerpc/ambiguousv2.d: Remove FIXME.
--
You are receiving this mail because:
You are on the CC list for the bug.