aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/pic-reloc-6.s
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-mips-elf/pic-reloc-6.s')
-rw-r--r--ld/testsuite/ld-mips-elf/pic-reloc-6.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/pic-reloc-6.s b/ld/testsuite/ld-mips-elf/pic-reloc-6.s
index 777ea26..5cf5e81 100644
--- a/ld/testsuite/ld-mips-elf/pic-reloc-6.s
+++ b/ld/testsuite/ld-mips-elf/pic-reloc-6.s
@@ -1,5 +1,6 @@
.text
.globl foo
+ .globl global_tls
.ent foo
foo:
$LCL:
@@ -7,4 +8,15 @@ $LCL:
addiu $2, %lo($LCL)
li $2, %hi(bar)
addiu $2, %lo(bar)
+ li $a0,%tprel_hi(local_tls)
+ lw $a1,%tprel_lo(local_tls)($a0)
+ li $a0,%tprel_hi(global_tls)
+ lw $a1,%tprel_lo(global_tls)($a0)
.end foo
+ .type local_tls,%object
+ .type global_tls,%object
+ .section .tbss,"awT",@nobits
+local_tls:
+ .word
+global_tls:
+ .word