binutils-gdb/ld/testsuite/ld-powerpc/inline.s
Alan Modra 0dbd452ad2 PowerPC64 inline PLT call tests
* testsuite/ld-powerpc/inline.s,
	* testsuite/ld-powerpc/inline-1.d,
	* testsuite/ld-powerpc/inline-2.d,
	* testsuite/ld-powerpc/inline-3.d,
	* testsuite/ld-powerpc/inline-4.d,
	* testsuite/ld-powerpc/inlinepcrel.s,
	* testsuite/ld-powerpc/inlinepcrel-1.d,
	* testsuite/ld-powerpc/inlinepcrel-2.d,
	* testsuite/ld-powerpc/inlinepcrel-3.d: New tests.
	* testsuite/ld-powerpc/powerpc.exp: Run them.
2020-08-16 23:00:34 +09:30

13 lines
309 B
ArmAsm

.text
.globl _start
_start:
std 2,24(1)
.reloc .-4,R_PPC64_PLTSEQ,my_func
addis 12,2,my_func@plt@ha # .reloc .,R_PPC64_PLT16_HA,my_func
ld 12,my_func@plt@l(12) # .reloc .,R_PPC64_PLT16_LO_DS,my_func
mtctr 12
.reloc .-4,R_PPC64_PLTSEQ,my_func
bctrl
.reloc .-4,R_PPC64_PLTCALL,my_func
ld 2,24(1)