mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
14 lines
181 B
ArmAsm
14 lines
181 B
ArmAsm
.global var
|
|
.text
|
|
test:
|
|
ldr x1, .Lgot
|
|
adr x2, .Lgot
|
|
add x1, x1, x2
|
|
|
|
movz x0, #:tlsgd_g1:var
|
|
add x0, x1, x0
|
|
bl __tls_get_addr
|
|
nop
|
|
|
|
.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .
|