diff options
Diffstat (limited to 'ld/testsuite/ld-powerpc/tlsmark32.s')
-rw-r--r-- | ld/testsuite/ld-powerpc/tlsmark32.s | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/tlsmark32.s b/ld/testsuite/ld-powerpc/tlsmark32.s new file mode 100644 index 0000000000..2fa48ae0d7 --- /dev/null +++ b/ld/testsuite/ld-powerpc/tlsmark32.s @@ -0,0 +1,27 @@ + .section ".tdata","awT",@progbits +x: .int 1 + + .text + .global _start +_start: + b .L2 + +.L1: + bl __tls_get_addr(x@tlsgd) + lwz 4,0(3) + addi 3,31,x@got@tlsld + b .L3 +.L2: + addi 3,31,x@got@tlsgd + b .L1 +.L3: + bl __tls_get_addr(x@tlsld) + lwz 4,x@dtprel(3) + + + .section ".text.no","ax",@progbits + .p2align 2 + addi 3,31,gd@got@tlsgd + lis 29,__tls_get_addr@ha + addi 29,29,__tls_get_addr@l + bl __tls_get_addr |