old-cross-binutils/ld/testsuite/ld-powerpc/tocopt6c.s
Richard Sandiford 92a9c616e4 Fix an opd->append index in elf64-ppc.c
bfd/
	* elf64-ppc.c (toc_adjusting_stub_needed): Use the symbol value
	plus addend rather than the original st_value when looking up
	entries in opd->adjust.

ld/testsuite/
	* ld-powerpc/tocopt6-inc.s, ld-powerpc/tocopt6a.s,
	ld-powerpc/tocopt6b.s, ld-powerpc/tocopt6c.s,
	ld-powerpc/tocopt6.d: New test.
	* ld-powerpc/powerpc.exp (ppc64elftests): Add it.
2015-07-05 19:57:07 +01:00

20 lines
176 B
ArmAsm

.include "tocopt6-inc.s"
in123
in23
gobblegot f3
.section .text
.globl main
start main
bl f1
nop
bl f2
nop
bl f3
nop
bl g2
nop
bl in23
nop
li 3, 0
end main