mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
25 lines
357 B
ArmAsm
25 lines
357 B
ArmAsm
|
// Test TLS Desc to TLS IE relaxation when instructions are not consecutive.
|
||
|
|
||
|
.global var
|
||
|
.section .tdata
|
||
|
var:
|
||
|
.word 2
|
||
|
.text
|
||
|
adrp x0, :tlsdesc:var
|
||
|
nop
|
||
|
ldr x1, [x0, #:tlsdesc_lo12:var]
|
||
|
nop
|
||
|
nop
|
||
|
nop
|
||
|
add x0, x0, :tlsdesc_lo12:var
|
||
|
nop
|
||
|
nop
|
||
|
.tlsdesccall var
|
||
|
blr x1
|
||
|
nop
|
||
|
mrs x1, tpidr_el0
|
||
|
add x0, x1, x0
|
||
|
ldr w0, [x0]
|
||
|
.global var
|
||
|
.section .tdata
|