Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-aarch64/tls-relax-ie-le-3.s
2023-03-06 14:48:14 +01:00

12 lines
237 B
ArmAsm

# Test TLS IE to TLS LE relaxation when using arbitrary registers.
.section .tdata
var:
.word 2
.text
mrs x2, tpidr_el0
adrp x15, :gottprel:var
ldr x15, [x15, #:gottprel_lo12:var]
add x15, x2, x15
ldr w0, [x15]
.section .tdata