binutils-gdb/ld/testsuite/ld-powerpc/tlsget.s
Alan Modra f243e458cd PR26656 testcases
* testsuite/ld-powerpc/tlsget.d,
	* testsuite/ld-powerpc/tlsget.s,
	* testsuite/ld-powerpc/tlsget.wf,
	* testsuite/ld-powerpc/tlsget2.d.
	* testsuite/ld-powerpc/tlsget2.wf: New testcases.
	* testsuite/ld-powerpc/powerpc.exp: Run them.
2020-09-28 19:36:35 +09:30

25 lines
315 B
ArmAsm

.text
.abiversion 2
.globl _start
_start:
.cfi_startproc
pla 3,gd@got@tlsgd@pcrel
bl __tls_get_addr@notoc(gd@tlsgd)
addis 3,2,gd@got@tlsgd@ha
addi 3,3,gd@got@tlsgd@l
bl __tls_get_addr(gd@tlsgd)
nop
bl fun@notoc
bl fun
nop
.type fun,@gnu_indirect_function
fun:
pla 3,1f@pcrel
1:
blr
.cfi_endproc