Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-powerpc/tlsopt5_32.s

19 lines
292 B
ArmAsm
Raw Normal View History

2023-03-06 14:48:14 +01:00
.globl _start
_start:
stwu 1,-16(1)
mflr 0
bcl 20,31,.L2
.L2:
stw 30,8(1)
mflr 30
addis 30,30,_GLOBAL_OFFSET_TABLE_-.L2@ha
stw 0,20(1)
addi 30,30,_GLOBAL_OFFSET_TABLE_-.L2@l
addi 3,30,gd@got@tlsgd
bl __tls_get_addr(gd@tlsgd)@plt
lwz 0,20(1)
lwz 30,8(1)
mtlr 0
addi 1,1,16
blr