mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
44 lines
562 B
ArmAsm
44 lines
562 B
ArmAsm
|
.arch armv4t
|
||
|
.syntax unified
|
||
|
.text
|
||
|
text:
|
||
|
.arm
|
||
|
ldr r0,1f
|
||
|
2: bl +loc(tlscall)
|
||
|
nop
|
||
|
.p2align 2
|
||
|
1: .word loc(tlsdesc) + (. - 2b)
|
||
|
|
||
|
.thumb
|
||
|
ldr r0,1f
|
||
|
2: bl +loc(tlscall)
|
||
|
nop
|
||
|
.p2align 2
|
||
|
1: .word loc(tlsdesc) + (. - 2b + 1)
|
||
|
|
||
|
.section ".foo","ax"
|
||
|
foo:
|
||
|
.arm
|
||
|
ldr r0,1f
|
||
|
2: bl +loc(tlscall)
|
||
|
nop
|
||
|
.p2align 2
|
||
|
1: .word loc(tlsdesc) + (. - 2b)
|
||
|
|
||
|
.arm
|
||
|
ldr r0,1f
|
||
|
2: bl +glob(tlscall)
|
||
|
nop
|
||
|
.p2align 2
|
||
|
1: .word glob(tlsdesc) + (. - 2b)
|
||
|
|
||
|
.thumb
|
||
|
ldr r0,1f
|
||
|
2: bl +loc(tlscall)
|
||
|
nop
|
||
|
.p2align 2
|
||
|
1: .word loc(tlsdesc) + (. - 2b + 1)
|
||
|
|
||
|
.section .tdata,"awT"
|
||
|
loc: .space 4
|