mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
f4e584bd00
ld-mips-elf/tlslib-o32.got, ld-mips-elf/tlslib-o32.d, ld-mips-elf/tlslib-o32.s, ld-mips-elf/mips-lib.ld, ld-mips-elf/tlsbin-o32.got, ld-mips-elf/tlsdyn-o32.d, ld-mips-elf/tlsdyn-o32.got, ld-mips-elf/tlsbin-o32.d, ld-mips-elf/tlsdyn-o32.s, ld-mips-elf/tls-multi-got-1.got, ld-mips-elf/tls-multi-got-1-1.s, ld-mips-elf/tls-multi-got-1.d, ld-mips-elf/tls-multi-got-1.r, ld-mips-elf/tls-multi-got-1-2.s, ld-mips-elf/tlslib-o32-ver.got, ld-mips-elf/tlslib.ver, ld-mips-elf/tlslib-o32-hidden.got, ld-mips-elf/tlslib-hidden.ver, ld-mips-elf/tlsdyn-o32-1.d, ld-mips-elf/tlsdyn-o32-3.got, ld-mips-elf/tlsdyn-o32-2.d, ld-mips-elf/tlsdyn-o32-2.s, ld-mips-elf/tlsdyn-o32-3.d, ld-mips-elf/tlsdyn-o32-1.got, ld-mips-elf/tlsdyn-o32-2.got: New files. * ld-mips-elf/mips-elf.exp: Run the new tests.
71 lines
1.1 KiB
ArmAsm
71 lines
1.1 KiB
ArmAsm
.file 1 "tlslib-o32.s"
|
|
.abicalls
|
|
.text
|
|
.align 2
|
|
.globl fn
|
|
.ent fn
|
|
.type fn,@function
|
|
fn:
|
|
.frame $fp,16,$31
|
|
.mask 0x40000000,-8
|
|
.fmask 0x00000000,0
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
addiu $sp,$sp,-16
|
|
sw $fp,8($sp)
|
|
move $fp,$sp
|
|
.cprestore 0
|
|
|
|
# General Dynamic
|
|
lw $25,%call16(__tls_get_addr)($28)
|
|
addiu $4,$28,%tlsgd(tlsvar_gd)
|
|
jal $25
|
|
|
|
# Local Dynamic
|
|
lw $25,%call16(__tls_get_addr)($28)
|
|
addiu $4,$28,%tlsldm(tlsvar_ld)
|
|
jal $25
|
|
|
|
move $2,$2 # Arbitrary instructions
|
|
|
|
lui $3,%dtprel_hi(tlsvar_ld)
|
|
addiu $3,$3,%dtprel_lo(tlsvar_ld)
|
|
addu $3,$3,$2
|
|
|
|
# Initial Exec
|
|
.set push
|
|
.set mips32r2
|
|
rdhwr $2, $5
|
|
.set pop
|
|
lw $3,%gottprel(tlsvar_ie)($28)
|
|
addu $3,$3,$2
|
|
|
|
move $sp,$fp
|
|
lw $fp,8($sp)
|
|
addiu $sp,$sp,16
|
|
j $31
|
|
.end fn
|
|
|
|
.section .tbss,"awT",@nobits
|
|
.align 2
|
|
.global tlsvar_gd
|
|
.type tlsvar_gd,@object
|
|
.size tlsvar_gd,4
|
|
tlsvar_gd:
|
|
.space 4
|
|
.global tlsvar_ie
|
|
.type tlsvar_ie,@object
|
|
.size tlsvar_ie,4
|
|
tlsvar_ie:
|
|
.space 4
|
|
|
|
.section .tdata,"awT"
|
|
.align 2
|
|
.global tlsvar_ld
|
|
.hidden tlsvar_ld
|
|
.type tlsvar_ld,@object
|
|
.size tlsvar_ld,4
|
|
tlsvar_ld:
|
|
.word 1
|