mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
13 lines
201 B
ArmAsm
13 lines
201 B
ArmAsm
.section .tdata
|
|
var:
|
|
.word 2
|
|
.text
|
|
adrp x0, :tlsdesc:var
|
|
ldr x1, [x0, #:tlsdesc_lo12:var]
|
|
add x0, x0, :tlsdesc_lo12:var
|
|
.tlsdesccall var
|
|
blr x1
|
|
mrs x1, tpidr_el0
|
|
add x0, x1, x0
|
|
ldr w0, [x0]
|