binutils-gdb/ld/testsuite/ld-powerpc/inlinepcrel.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

10 lines
191 B
ArmAsm

.text
.globl _start
_start:
pld 12,0(0),1
.reloc .-8,R_PPC64_PLT_PCREL34_NOTOC,my_func
mtctr 12
.reloc .-4,R_PPC64_PLTSEQ_NOTOC,my_func
bctrl
.reloc .-4,R_PPC64_PLTCALL_NOTOC,my_func