binutils-gdb/ld/testsuite
Alan Modra 3988aed54a 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.
2017-11-01 18:46:34 +10:30
..
config LD_CLASS: Check .libs/ld-new for linker first 2017-08-09 16:38:09 -07:00
ld-aarch64 ELF: Call check_relocs after opening all inputs 2017-10-16 03:50:13 -07:00
ld-alpha Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-arc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-arm As Alan predicted at https://sourceware.org/ml/binutils/2017-10/msg00137.html the values in some Arm tests need updating after recent changes. These looked a bit spooky at first, but they are just a difference in the order we emit veneers and far jumps, so are not so scary after all. 2017-10-26 11:30:40 +01:00
ld-auto-import
ld-avr This patch introduces support for specifing views in .loc directives, so that the compiler can use the assembler to generate line number information and have the assembler determine view numbers to multiple views at the same program counter. 2017-07-21 10:13:18 +01:00
ld-bootstrap
ld-cdtest
ld-checks ld-checks: tweak overflow checks. 2017-03-15 10:23:19 +01:00
ld-cris ELF: Call check_relocs after opening all inputs 2017-10-16 03:50:13 -07:00
ld-crx
ld-cygwin
ld-d10v
ld-discard
ld-elf PR22374 testcase, function pointer references in .data 2017-11-01 18:45:34 +10:30
ld-elfcomm Fix spelling typos. 2017-07-18 16:58:14 +01:00
ld-elfvers
ld-elfvsb Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-elfweak
ld-fastcall
ld-frv More support for ld --hash-style in the ld testsuite 2017-08-08 07:22:36 +09:30
ld-gc Remove pr19161 test hppa xfail 2017-08-23 08:58:42 +09:30
ld-h8300
ld-i386 ld: Update tests for warning of "-z dynamic-undefined-weak ignored" 2017-10-12 01:52:33 -07:00
ld-ia64 Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-ifunc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-mep
ld-metag Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-mips-elf MIPS/BFD: Correct microMIPS cross-mode BAL to JALX relaxation 2017-08-30 16:07:45 +01:00
ld-misc
ld-mmix Make sure that undefined symbols added to the linker command line via the -u option appear in the output executable, if they have not been resolved. 2017-10-23 18:16:49 +01:00
ld-mn10300
ld-msp430-elf Improve MSP430 section placement. 2017-08-29 17:18:43 +01:00
ld-nds32 Fix address violation when disassembling a corrupt binary. 2017-06-14 16:50:03 +01:00
ld-nios2
ld-pe pe/coff: handle weak defined symbol for gc-sections. 2017-04-07 10:03:17 +02:00
ld-pie
ld-plugin Allow for __gnu_lto_slim prefixed with extra "_" 2017-10-25 15:32:52 +10:30
ld-powerpc PR22374, PowerPC unnecessary PLT entries 2017-11-01 18:46:34 +10:30
ld-pru
ld-riscv-elf testsuite/ld-riscv-elf/ld-riscv-elf.exp: Fix typo for istarget. 2017-10-25 00:45:05 +02:00
ld-s390 Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-scripts ld: Don't allow '~' as the first char in symbol name 2017-10-09 04:17:24 -07:00
ld-selective Support single digit GCC version 2017-07-11 08:41:22 -07:00
ld-sh Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-shared Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-size Pass $NOPIE_LDFLAGS size tests 2017-06-21 14:45:57 -07:00
ld-sparc Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-spu
ld-srec Fix link time warning message when running the srec linker tests. 2017-10-09 15:32:09 +01:00
ld-tic6x Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-tilegx
ld-tilepro
ld-undefined LD/testsuite: Fix undefined symbol tests for MIPS and S+core targets 2017-09-26 12:09:50 +01:00
ld-unique Don't fail in elf32_hppa_set_gp 2017-08-05 23:28:21 +09:30
ld-v850
ld-vax-elf Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-versados
ld-visium
ld-vxworks
ld-x86-64 ld: Update tests for warning of "-z dynamic-undefined-weak ignored" 2017-10-12 01:52:33 -07:00
ld-xc16x
ld-xstormy16
ld-xtensa Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
ld-z8k
lib ld: Add "--" after regexp 2017-08-24 17:45:24 -07:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303