aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlsld32.s
blob: f5561d4a509f91932e723839358aaa0a71e74b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 .text
 .globl _start
_start:
 addis 3,31,PrettyStackTraceHead@got@tlsld@ha
 addi 29,3,PrettyStackTraceHead@got@tlsld@l
 mr 3,29
 bl __tls_get_addr(PrettyStackTraceHead@tlsld)
 addis 3,3,PrettyStackTraceHead@dtprel@ha
 lwz 3,PrettyStackTraceHead@dtprel@l(3)
 nop
 nop

 addi 29,31,PrettyStackTraceHead@got@tlsld
 mr 3,29
 bl __tls_get_addr(PrettyStackTraceHead@tlsld)
 lwz 3,PrettyStackTraceHead@dtprel(3)
 nop
 nop
 nop
 nop

 addis 3,31,PrettyStackTraceHead@got@tlsgd@ha
 addi 29,3,PrettyStackTraceHead@got@tlsgd@l
 mr 3,29
 bl __tls_get_addr(PrettyStackTraceHead@tlsgd)
 lwz 3,0(3)
 nop
 nop
 nop

 addi 29,31,PrettyStackTraceHead@got@tlsgd
 mr 3,29
 bl __tls_get_addr(PrettyStackTraceHead@tlsgd)
 lwz 3,0(3)
 nop
 nop
 nop
 nop

 .section ".tbss","awT",@nobits
 .align 2
PrettyStackTraceHead:
 .space 4