binutils-gdb/ld/testsuite/ld-aarch64/tls-relax-ie-le-3.s
2012-08-13 14:52:54 +00:00

13 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