Retro68/binutils/ld/testsuite/ld-mips-elf/pic-reloc-5.s
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

23 lines
400 B
ArmAsm

.text
.globl foo
.globl global_tls
.ent foo
foo:
$LCL:
lui $2, %hi($LCL)
addiu $2, %lo($LCL)
lui $2, %hi(bar)
addiu $2, %lo(bar)
lui $a0,%tprel_hi(local_tls)
addiu $a0,$a0,%tprel_lo(local_tls)
lui $a0,%tprel_hi(global_tls)
addiu $a0,$a0,%tprel_lo(global_tls)
.end foo
.type local_tls,%object
.type global_tls,%object
.section .tbss,"awT",@nobits
local_tls:
.word
global_tls:
.word