1 #name: FRV TLS relocs with addends, shared linking, relaxing
2 #source: tls-2.s
3 #objdump: -DR -j .text -j .got -j .plt
4 #ld: -shared tmpdir/tls-1-dep.so --version-script tls-1-shared.lds --relax
5 
6 .*:     file format elf.*frv.*
7 
8 Disassembly of section \.plt:
9 
10 [0-9a-f ]+<\.plt>:
11 [0-9a-f ]+:	90 cc f0 10 	lddi @\(gr15,16\),gr8
12 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
13 [0-9a-f ]+:	90 cc f0 30 	lddi @\(gr15,48\),gr8
14 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
15 [0-9a-f ]+:	90 cc f0 40 	lddi @\(gr15,64\),gr8
16 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
17 [0-9a-f ]+:	90 cc f0 50 	lddi @\(gr15,80\),gr8
18 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
19 [0-9a-f ]+:	90 cc f0 58 	lddi @\(gr15,88\),gr8
20 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
21 [0-9a-f ]+:	90 cc f0 68 	lddi @\(gr15,104\),gr8
22 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
23 [0-9a-f ]+:	90 cc ff a8 	lddi @\(gr15,-88\),gr8
24 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
25 [0-9a-f ]+:	90 cc ff b0 	lddi @\(gr15,-80\),gr8
26 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
27 [0-9a-f ]+:	90 cc ff c8 	lddi @\(gr15,-56\),gr8
28 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
29 [0-9a-f ]+:	90 cc ff d8 	lddi @\(gr15,-40\),gr8
30 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
31 [0-9a-f ]+:	90 cc ff e0 	lddi @\(gr15,-32\),gr8
32 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
33 [0-9a-f ]+:	90 cc ff f0 	lddi @\(gr15,-16\),gr8
34 [0-9a-f ]+:	80 30 80 00 	jmpl @\(gr8,gr0\)
35 Disassembly of section \.text:
36 
37 [0-9a-f ]+<_start>:
38 [0-9a-f ]+:	fe 3f ff f0 	call .*
39 [0-9a-f ]+:	fe 3f ff f5 	call .*
40 [0-9a-f ]+:	fe 3f ff fa 	call .*
41 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
42 [0-9a-f ]+:	9c f4 00 98 	setlo 0x98,gr14
43 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
44 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
45 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
46 [0-9a-f ]+:	9c f4 00 a8 	setlo 0xa8,gr14
47 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
48 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
49 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
50 [0-9a-f ]+:	9c f4 00 c0 	setlo 0xc0,gr14
51 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
52 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
53 [0-9a-f ]+:	10 cc f0 60 	lddi\.p @\(gr15,96\),gr8
54 [0-9a-f ]+:	9c fc 00 60 	setlos 0x60,gr14
55 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
56 [0-9a-f ]+:	10 cc ff b8 	lddi\.p @\(gr15,-72\),gr8
57 [0-9a-f ]+:	9c fc ff b8 	setlos 0xf*ffffffb8,gr14
58 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
59 [0-9a-f ]+:	10 cc ff e8 	lddi\.p @\(gr15,-24\),gr8
60 [0-9a-f ]+:	9c fc ff e8 	setlos 0xf*ffffffe8,gr14
61 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
62 [0-9a-f ]+:	80 88 00 00 	nop
63 [0-9a-f ]+:	92 fc f8 14 	setlos 0xf*fffff814,gr9
64 [0-9a-f ]+:	80 88 00 00 	nop
65 [0-9a-f ]+:	92 fc 08 14 	setlos 0x814,gr9
66 [0-9a-f ]+:	92 f8 00 00 	sethi hi\(0x0\),gr9
67 [0-9a-f ]+:	92 f4 f8 14 	setlo 0xf814,gr9
68 [0-9a-f ]+:	fe 3f ff e0 	call .*
69 [0-9a-f ]+:	fe 3f ff c9 	call .*
70 [0-9a-f ]+:	fe 3f ff ca 	call .*
71 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
72 [0-9a-f ]+:	9c f4 00 c8 	setlo 0xc8,gr14
73 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
74 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
75 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
76 [0-9a-f ]+:	9c f4 00 78 	setlo 0x78,gr14
77 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
78 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
79 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
80 [0-9a-f ]+:	9c f4 00 88 	setlo 0x88,gr14
81 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
82 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
83 [0-9a-f ]+:	10 cc ff f8 	lddi\.p @\(gr15,-8\),gr8
84 [0-9a-f ]+:	9c fc ff f8 	setlos 0xf*fffffff8,gr14
85 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
86 [0-9a-f ]+:	10 cc f0 18 	lddi\.p @\(gr15,24\),gr8
87 [0-9a-f ]+:	9c fc 00 18 	setlos 0x18,gr14
88 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
89 [0-9a-f ]+:	10 cc f0 38 	lddi\.p @\(gr15,56\),gr8
90 [0-9a-f ]+:	9c fc 00 38 	setlos 0x38,gr14
91 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
92 [0-9a-f ]+:	80 88 00 00 	nop
93 [0-9a-f ]+:	92 fc f8 24 	setlos 0xf*fffff824,gr9
94 [0-9a-f ]+:	80 88 00 00 	nop
95 [0-9a-f ]+:	92 fc 08 24 	setlos 0x824,gr9
96 [0-9a-f ]+:	92 f8 00 00 	sethi hi\(0x0\),gr9
97 [0-9a-f ]+:	92 f4 f8 24 	setlo 0xf824,gr9
98 [0-9a-f ]+:	fe 3f ff b0 	call .*
99 [0-9a-f ]+:	fe 3f ff b5 	call .*
100 [0-9a-f ]+:	fe 3f ff ba 	call .*
101 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
102 [0-9a-f ]+:	9c f4 00 90 	setlo 0x90,gr14
103 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
104 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
105 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
106 [0-9a-f ]+:	9c f4 00 a0 	setlo 0xa0,gr14
107 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
108 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
109 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
110 [0-9a-f ]+:	9c f4 00 b8 	setlo 0xb8,gr14
111 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
112 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
113 [0-9a-f ]+:	10 cc f0 48 	lddi\.p @\(gr15,72\),gr8
114 [0-9a-f ]+:	9c fc 00 48 	setlos 0x48,gr14
115 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
116 [0-9a-f ]+:	10 cc ff a0 	lddi\.p @\(gr15,-96\),gr8
117 [0-9a-f ]+:	9c fc ff a0 	setlos 0xf*ffffffa0,gr14
118 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
119 [0-9a-f ]+:	10 cc ff d0 	lddi\.p @\(gr15,-48\),gr8
120 [0-9a-f ]+:	9c fc ff d0 	setlos 0xf*ffffffd0,gr14
121 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
122 [0-9a-f ]+:	80 88 00 00 	nop
123 [0-9a-f ]+:	92 fc 00 04 	setlos 0x4,gr9
124 [0-9a-f ]+:	80 88 00 00 	nop
125 [0-9a-f ]+:	92 fc 10 04 	setlos 0x1004,gr9
126 [0-9a-f ]+:	92 f8 00 01 	sethi 0x1,gr9
127 [0-9a-f ]+:	92 f4 00 04 	setlo 0x4,gr9
128 [0-9a-f ]+:	fe 3f ff 94 	call .*
129 [0-9a-f ]+:	fe 3f ff 99 	call .*
130 [0-9a-f ]+:	fe 3f ff 9e 	call .*
131 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
132 [0-9a-f ]+:	9c f4 00 b0 	setlo 0xb0,gr14
133 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
134 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
135 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
136 [0-9a-f ]+:	9c f4 00 80 	setlo 0x80,gr14
137 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
138 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
139 [0-9a-f ]+:	1c f8 00 00 	sethi\.p hi\(0x0\),gr14
140 [0-9a-f ]+:	9c f4 00 70 	setlo 0x70,gr14
141 [0-9a-f ]+:	90 08 f1 4e 	ldd @\(gr15,gr14\),gr8
142 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
143 [0-9a-f ]+:	10 cc f0 20 	lddi\.p @\(gr15,32\),gr8
144 [0-9a-f ]+:	9c fc 00 20 	setlos 0x20,gr14
145 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
146 [0-9a-f ]+:	10 cc f0 28 	lddi\.p @\(gr15,40\),gr8
147 [0-9a-f ]+:	9c fc 00 28 	setlos 0x28,gr14
148 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
149 [0-9a-f ]+:	10 cc ff c0 	lddi\.p @\(gr15,-64\),gr8
150 [0-9a-f ]+:	9c fc ff c0 	setlos 0xf*ffffffc0,gr14
151 [0-9a-f ]+:	82 30 80 00 	calll @\(gr8,gr0\)
152 Disassembly of section \.got:
153 
154 [0-9a-f ]+<(__data_start|_GLOBAL_OFFSET_TABLE_-0x60)>:
155 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
156 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
157 [0-9a-f ]+:	00 00 17 f3 	\*unknown\*
158 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
159 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
160 [0-9a-f ]+:	00 00 10 01 	add\.p sp,sp,gr0
161 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
162 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
163 [0-9a-f ]+:	00 00 10 01 	add\.p sp,sp,gr0
164 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
165 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
166 [0-9a-f ]+:	00 00 10 03 	add\.p sp,gr3,gr0
167 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
168 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
169 [0-9a-f ]+:	00 01 00 03 	add\.p gr16,gr3,gr0
170 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
171 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
172 [0-9a-f ]+:	00 01 07 f1 	\*unknown\*
173 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
174 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
175 [0-9a-f ]+:	00 01 07 f3 	\*unknown\*
176 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
177 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
178 [0-9a-f ]+:	00 01 00 01 	add\.p gr16,sp,gr0
179 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
180 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
181 [0-9a-f ]+:	00 01 00 01 	add\.p gr16,sp,gr0
182 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
183 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
184 [0-9a-f ]+:	00 01 00 03 	add\.p gr16,gr3,gr0
185 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
186 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
187 [0-9a-f ]+:	00 00 00 11 	add\.p gr0,gr17,gr0
188 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
189 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
190 [0-9a-f ]+:	00 00 00 13 	add\.p gr0,gr19,gr0
191 
192 [0-9a-f ]+<_GLOBAL_OFFSET_TABLE_>:
193 	\.\.\.
194 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
195 [0-9a-f ]+:	00 00 10 11 	add\.p sp,gr17,gr0
196 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
197 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
198 [0-9a-f ]+:	00 00 10 13 	add\.p sp,gr19,gr0
199 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
200 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
201 [0-9a-f ]+:	00 00 00 03 	add\.p gr0,gr3,gr0
202 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
203 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
204 [0-9a-f ]+:	00 00 10 03 	add\.p sp,gr3,gr0
205 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
206 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
207 [0-9a-f ]+:	00 01 00 11 	add\.p gr16,gr17,gr0
208 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
209 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
210 [0-9a-f ]+:	00 01 00 13 	add\.p gr16,gr19,gr0
211 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
212 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
213 [0-9a-f ]+:	00 00 07 f1 	\*unknown\*
214 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
215 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
216 [0-9a-f ]+:	00 00 07 f3 	\*unknown\*
217 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
218 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
219 [0-9a-f ]+:	00 00 00 01 	add\.p gr0,sp,gr0
220 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
221 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
222 [0-9a-f ]+:	00 00 00 01 	add\.p gr0,sp,gr0
223 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
224 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
225 [0-9a-f ]+:	00 00 00 03 	add\.p gr0,gr3,gr0
226 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
227 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
228 [0-9a-f ]+:	00 00 17 f1 	\*unknown\*
229 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
230 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
231 [0-9a-f ]+:	00 01 00 02 	add\.p gr16,fp,gr0
232 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
233 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
234 [0-9a-f ]+:	00 00 10 12 	add\.p sp,gr18,gr0
235 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
236 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
237 [0-9a-f ]+:	00 00 10 02 	add\.p sp,fp,gr0
238 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
239 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
240 [0-9a-f ]+:	00 01 00 12 	add\.p gr16,gr18,gr0
241 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
242 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
243 [0-9a-f ]+:	00 00 07 f2 	\*unknown\*
244 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
245 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
246 [0-9a-f ]+:	00 00 00 02 	add\.p gr0,fp,gr0
247 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
248 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
249 [0-9a-f ]+:	00 00 17 f2 	\*unknown\*
250 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
251 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
252 [0-9a-f ]+:	00 00 10 02 	add\.p sp,fp,gr0
253 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
254 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	x
255 [0-9a-f ]+:	00 00 00 02 	add\.p gr0,fp,gr0
256 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
257 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
258 [0-9a-f ]+:	00 01 07 f2 	\*unknown\*
259 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
260 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
261 [0-9a-f ]+:	00 01 00 02 	add\.p gr16,fp,gr0
262 [0-9a-f ]+:	00 00 00 00 	add\.p gr0,gr0,gr0
263 [0-9a-f	 ]+: R_FRV_TLSDESC_VALUE	\.tbss
264 [0-9a-f ]+:	00 00 00 12 	add\.p gr0,gr18,gr0
265