]>
Commit | Line | Data |
---|---|---|
c213164a AM |
1 | .section ".tbss","awT",@nobits |
2 | .p2align 3 | |
3 | pad: .space 8 | |
4 | .global a | |
5 | a: .space 8 | |
6 | .global b | |
7 | b: .space 8 | |
8 | .global c | |
9 | c: .space 8 | |
10 | .global d | |
11 | d: .space 8 | |
12 | ||
13 | .text | |
14 | .globl _start | |
15 | _start: | |
16 | #Small model OpenPower | |
17 | addi 3,2,.La@toc | |
18 | bl __tls_get_addr(.La@tlsgd) | |
19 | nop | |
20 | .section .toc,"aw",@progbits | |
21 | .p2align 3 | |
22 | .La: | |
23 | .quad a@dtpmod | |
24 | .quad a@dtprel | |
25 | .text | |
26 | ||
27 | #Medium mode ELF | |
28 | addis 3,2,b@got@tlsgd@ha | |
29 | addi 3,3,b@got@tlsgd@l | |
30 | bl __tls_get_addr(b@tlsgd) | |
31 | nop | |
32 | ||
33 | #PCrel | |
34 | pla 3,c@got@tlsgd@pcrel | |
35 | bl __tls_get_addr@notoc(c@tlsgd) | |
36 | ||
37 | #All of the above using the same symbol | |
38 | addis 3,2,.Ld@toc@ha | |
39 | addi 3,3,.Ld@toc@l | |
40 | bl __tls_get_addr(.Ld@tlsgd) | |
41 | nop | |
42 | .section .toc,"aw",@progbits | |
43 | .Ld: | |
44 | .quad d@dtpmod | |
45 | .quad d@dtprel | |
46 | .text | |
47 | addis 3,2,d@got@tlsgd@ha | |
48 | addi 3,3,d@got@tlsgd@l | |
49 | bl __tls_get_addr(d@tlsgd) | |
50 | nop | |
51 | pla 3,d@got@tlsgd@pcrel | |
52 | bl __tls_get_addr@notoc(d@tlsgd) |