1        .section        .tbss,"awT",@nobits
2        .align 4
3	.globl i
4        .type   i, @object
5        .size   i, 4
6i:
7        .zero   4
8        .align 4
9        .type   l, @object
10        .size   l, 4
11l:
12        .zero   4
13	.text
14	.globl	_start
15_start:
16	call	#gettlsoff(x)
17
18	sethi.p	#gottlsdeschi(x), gr14
19	setlo	#gottlsdesclo(x), gr14
20	ldd	#tlsdesc(x)@(gr15, gr14), gr8
21	calll	#gettlsoff(x)@(gr8, gr0)
22
23	lddi.p	@(gr15, #gottlsdesc12(x)), gr8
24	setlos	#gottlsdesclo(x), gr14
25	calll	#gettlsoff(x)@(gr8, gr0)
26
27	call	#gettlsoff(i)
28
29	sethi.p	#gottlsdeschi(i), gr14
30	setlo	#gottlsdesclo(i), gr14
31	ldd	#tlsdesc(i)@(gr15, gr14), gr8
32	calll	#gettlsoff(i)@(gr8, gr0)
33
34	lddi.p	@(gr15, #gottlsdesc12(i)), gr8
35	setlos	#gottlsdesclo(i), gr14
36	calll	#gettlsoff(i)@(gr8, gr0)
37
38	call	#gettlsoff(l)
39
40	sethi.p	#gottlsdeschi(l), gr14
41	setlo	#gottlsdesclo(l), gr14
42	ldd	#tlsdesc(l)@(gr15, gr14), gr8
43	calll	#gettlsoff(l)@(gr8, gr0)
44
45	lddi.p	@(gr15, #gottlsdesc12(l)), gr8
46	setlos	#gottlsdesclo(l), gr14
47	calll	#gettlsoff(l)@(gr8, gr0)
48
49	call	#gettlsoff(0)
50
51	sethi.p	#gottlsdeschi(0), gr14
52	setlo	#gottlsdesclo(0), gr14
53	ldd	#tlsdesc(0)@(gr15, gr14), gr8
54	calll	#gettlsoff(0)@(gr8, gr0)
55
56	lddi.p	@(gr15, #gottlsdesc12(0)), gr8
57	setlos	#gottlsdesclo(0), gr14
58	calll	#gettlsoff(0)@(gr8, gr0)
59
60	sethi.p	#tlsmoffhi(l), gr8
61	setlo	#tlsmofflo(l), gr8
62
63	sethi.p	#tlsmoffhi(i), gr9
64	setlo	#tlsmofflo(i), gr9
65
66	ldi	@(gr15, #gottlsoff12(x)), gr9
67	ldi	@(gr15, #gottlsoff12(i)), gr9
68	ldi	@(gr15, #gottlsoff12(l)), gr9
69	ldi	@(gr15, #gottlsoff12(0)), gr9
70
71	sethi.p	#gottlsoffhi(x), gr14
72	setlo	#gottlsofflo(x), gr14
73	ld	#tlsoff(x)@(gr15, gr14), gr9
74
75	sethi.p	#gottlsoffhi(i), gr14
76	setlo	#gottlsofflo(i), gr14
77	ld	#tlsoff(i)@(gr15, gr14), gr9
78
79	sethi.p	#gottlsoffhi(l), gr14
80	setlo	#gottlsofflo(l), gr14
81	ld	#tlsoff(l)@(gr15, gr14), gr9
82
83	sethi.p	#gottlsoffhi(0), gr14
84	setlo	#gottlsofflo(0), gr14
85	ld	#tlsoff(0)@(gr15, gr14), gr9
86