1 |
205 |
julius |
#objdump: -dr --prefix-addresses -mmips:3000
|
2 |
|
|
#name: MIPS ld-xgot
|
3 |
|
|
#as: -32 -mips1 -mtune=r3000 -KPIC -xgot
|
4 |
|
|
#source: ld-pic.s
|
5 |
|
|
|
6 |
|
|
# Test the ld macro with -KPIC -xgot.
|
7 |
|
|
|
8 |
|
|
.*: +file format .*mips.*
|
9 |
|
|
|
10 |
|
|
Disassembly of section .text:
|
11 |
|
|
0+0000 <[^>]*> lw a0,0\(zero\)
|
12 |
|
|
0+0004 <[^>]*> lw a1,4\(zero\)
|
13 |
|
|
0+0008 <[^>]*> lw a0,1\(zero\)
|
14 |
|
|
0+000c <[^>]*> lw a1,5\(zero\)
|
15 |
|
|
0+0010 <[^>]*> lui at,0x1
|
16 |
|
|
0+0014 <[^>]*> lw a0,-32768\(at\)
|
17 |
|
|
0+0018 <[^>]*> lw a1,-32764\(at\)
|
18 |
|
|
0+001c <[^>]*> lw a0,-32768\(zero\)
|
19 |
|
|
0+0020 <[^>]*> lw a1,-32764\(zero\)
|
20 |
|
|
0+0024 <[^>]*> lui at,0x1
|
21 |
|
|
0+0028 <[^>]*> lw a0,0\(at\)
|
22 |
|
|
0+002c <[^>]*> lw a1,4\(at\)
|
23 |
|
|
0+0030 <[^>]*> lui at,0x2
|
24 |
|
|
0+0034 <[^>]*> lw a0,-23131\(at\)
|
25 |
|
|
0+0038 <[^>]*> lw a1,-23127\(at\)
|
26 |
|
|
0+003c <[^>]*> nop
|
27 |
|
|
0+0040 <[^>]*> lw a0,0\(a1\)
|
28 |
|
|
0+0044 <[^>]*> lw a1,4\(a1\)
|
29 |
|
|
0+0048 <[^>]*> nop
|
30 |
|
|
0+004c <[^>]*> lw a0,1\(a1\)
|
31 |
|
|
0+0050 <[^>]*> lw a1,5\(a1\)
|
32 |
|
|
0+0054 <[^>]*> lui at,0x1
|
33 |
|
|
0+0058 <[^>]*> addu at,a1,at
|
34 |
|
|
0+005c <[^>]*> lw a0,-32768\(at\)
|
35 |
|
|
0+0060 <[^>]*> lw a1,-32764\(at\)
|
36 |
|
|
0+0064 <[^>]*> nop
|
37 |
|
|
0+0068 <[^>]*> lw a0,-32768\(a1\)
|
38 |
|
|
0+006c <[^>]*> lw a1,-32764\(a1\)
|
39 |
|
|
0+0070 <[^>]*> lui at,0x1
|
40 |
|
|
0+0074 <[^>]*> addu at,a1,at
|
41 |
|
|
0+0078 <[^>]*> lw a0,0\(at\)
|
42 |
|
|
0+007c <[^>]*> lw a1,4\(at\)
|
43 |
|
|
0+0080 <[^>]*> lui at,0x2
|
44 |
|
|
0+0084 <[^>]*> addu at,a1,at
|
45 |
|
|
0+0088 <[^>]*> lw a0,-23131\(at\)
|
46 |
|
|
0+008c <[^>]*> lw a1,-23127\(at\)
|
47 |
|
|
0+0090 <[^>]*> lw at,0\(gp\)
|
48 |
|
|
[ ]*90: R_MIPS_GOT16 .data
|
49 |
|
|
0+0094 <[^>]*> nop
|
50 |
|
|
0+0098 <[^>]*> lw a0,0\(at\)
|
51 |
|
|
[ ]*98: R_MIPS_LO16 .data
|
52 |
|
|
0+009c <[^>]*> lw a1,4\(at\)
|
53 |
|
|
[ ]*9c: R_MIPS_LO16 .data
|
54 |
|
|
0+00a0 <[^>]*> lui at,0x0
|
55 |
|
|
[ ]*a0: R_MIPS_GOT_HI16 big_external_data_label
|
56 |
|
|
0+00a4 <[^>]*> addu at,at,gp
|
57 |
|
|
0+00a8 <[^>]*> lw at,0\(at\)
|
58 |
|
|
[ ]*a8: R_MIPS_GOT_LO16 big_external_data_label
|
59 |
|
|
0+00ac <[^>]*> nop
|
60 |
|
|
0+00b0 <[^>]*> lw a0,0\(at\)
|
61 |
|
|
0+00b4 <[^>]*> lw a1,4\(at\)
|
62 |
|
|
0+00b8 <[^>]*> lui at,0x0
|
63 |
|
|
[ ]*b8: R_MIPS_GOT_HI16 small_external_data_label
|
64 |
|
|
0+00bc <[^>]*> addu at,at,gp
|
65 |
|
|
0+00c0 <[^>]*> lw at,0\(at\)
|
66 |
|
|
[ ]*c0: R_MIPS_GOT_LO16 small_external_data_label
|
67 |
|
|
0+00c4 <[^>]*> nop
|
68 |
|
|
0+00c8 <[^>]*> lw a0,0\(at\)
|
69 |
|
|
0+00cc <[^>]*> lw a1,4\(at\)
|
70 |
|
|
0+00d0 <[^>]*> lui at,0x0
|
71 |
|
|
[ ]*d0: R_MIPS_GOT_HI16 big_external_common
|
72 |
|
|
0+00d4 <[^>]*> addu at,at,gp
|
73 |
|
|
0+00d8 <[^>]*> lw at,0\(at\)
|
74 |
|
|
[ ]*d8: R_MIPS_GOT_LO16 big_external_common
|
75 |
|
|
0+00dc <[^>]*> nop
|
76 |
|
|
0+00e0 <[^>]*> lw a0,0\(at\)
|
77 |
|
|
0+00e4 <[^>]*> lw a1,4\(at\)
|
78 |
|
|
0+00e8 <[^>]*> lui at,0x0
|
79 |
|
|
[ ]*e8: R_MIPS_GOT_HI16 small_external_common
|
80 |
|
|
0+00ec <[^>]*> addu at,at,gp
|
81 |
|
|
0+00f0 <[^>]*> lw at,0\(at\)
|
82 |
|
|
[ ]*f0: R_MIPS_GOT_LO16 small_external_common
|
83 |
|
|
0+00f4 <[^>]*> nop
|
84 |
|
|
0+00f8 <[^>]*> lw a0,0\(at\)
|
85 |
|
|
0+00fc <[^>]*> lw a1,4\(at\)
|
86 |
|
|
0+0100 <[^>]*> lw at,0\(gp\)
|
87 |
|
|
[ ]*100: R_MIPS_GOT16 .bss
|
88 |
|
|
0+0104 <[^>]*> nop
|
89 |
|
|
0+0108 <[^>]*> lw a0,0\(at\)
|
90 |
|
|
[ ]*108: R_MIPS_LO16 .bss
|
91 |
|
|
0+010c <[^>]*> lw a1,4\(at\)
|
92 |
|
|
[ ]*10c: R_MIPS_LO16 .bss
|
93 |
|
|
0+0110 <[^>]*> lw at,0\(gp\)
|
94 |
|
|
[ ]*110: R_MIPS_GOT16 .bss
|
95 |
|
|
0+0114 <[^>]*> nop
|
96 |
|
|
0+0118 <[^>]*> lw a0,1000\(at\)
|
97 |
|
|
[ ]*118: R_MIPS_LO16 .bss
|
98 |
|
|
0+011c <[^>]*> lw a1,1004\(at\)
|
99 |
|
|
[ ]*11c: R_MIPS_LO16 .bss
|
100 |
|
|
0+0120 <[^>]*> lw at,0\(gp\)
|
101 |
|
|
[ ]*120: R_MIPS_GOT16 .data
|
102 |
|
|
0+0124 <[^>]*> nop
|
103 |
|
|
0+0128 <[^>]*> lw a0,1\(at\)
|
104 |
|
|
[ ]*128: R_MIPS_LO16 .data
|
105 |
|
|
0+012c <[^>]*> lw a1,5\(at\)
|
106 |
|
|
[ ]*12c: R_MIPS_LO16 .data
|
107 |
|
|
0+0130 <[^>]*> lui at,0x0
|
108 |
|
|
[ ]*130: R_MIPS_GOT_HI16 big_external_data_label
|
109 |
|
|
0+0134 <[^>]*> addu at,at,gp
|
110 |
|
|
0+0138 <[^>]*> lw at,0\(at\)
|
111 |
|
|
[ ]*138: R_MIPS_GOT_LO16 big_external_data_label
|
112 |
|
|
0+013c <[^>]*> nop
|
113 |
|
|
0+0140 <[^>]*> lw a0,1\(at\)
|
114 |
|
|
0+0144 <[^>]*> lw a1,5\(at\)
|
115 |
|
|
0+0148 <[^>]*> lui at,0x0
|
116 |
|
|
[ ]*148: R_MIPS_GOT_HI16 small_external_data_label
|
117 |
|
|
0+014c <[^>]*> addu at,at,gp
|
118 |
|
|
0+0150 <[^>]*> lw at,0\(at\)
|
119 |
|
|
[ ]*150: R_MIPS_GOT_LO16 small_external_data_label
|
120 |
|
|
0+0154 <[^>]*> nop
|
121 |
|
|
0+0158 <[^>]*> lw a0,1\(at\)
|
122 |
|
|
0+015c <[^>]*> lw a1,5\(at\)
|
123 |
|
|
0+0160 <[^>]*> lui at,0x0
|
124 |
|
|
[ ]*160: R_MIPS_GOT_HI16 big_external_common
|
125 |
|
|
0+0164 <[^>]*> addu at,at,gp
|
126 |
|
|
0+0168 <[^>]*> lw at,0\(at\)
|
127 |
|
|
[ ]*168: R_MIPS_GOT_LO16 big_external_common
|
128 |
|
|
0+016c <[^>]*> nop
|
129 |
|
|
0+0170 <[^>]*> lw a0,1\(at\)
|
130 |
|
|
0+0174 <[^>]*> lw a1,5\(at\)
|
131 |
|
|
0+0178 <[^>]*> lui at,0x0
|
132 |
|
|
[ ]*178: R_MIPS_GOT_HI16 small_external_common
|
133 |
|
|
0+017c <[^>]*> addu at,at,gp
|
134 |
|
|
0+0180 <[^>]*> lw at,0\(at\)
|
135 |
|
|
[ ]*180: R_MIPS_GOT_LO16 small_external_common
|
136 |
|
|
0+0184 <[^>]*> nop
|
137 |
|
|
0+0188 <[^>]*> lw a0,1\(at\)
|
138 |
|
|
0+018c <[^>]*> lw a1,5\(at\)
|
139 |
|
|
0+0190 <[^>]*> lw at,0\(gp\)
|
140 |
|
|
[ ]*190: R_MIPS_GOT16 .bss
|
141 |
|
|
0+0194 <[^>]*> nop
|
142 |
|
|
0+0198 <[^>]*> lw a0,1\(at\)
|
143 |
|
|
[ ]*198: R_MIPS_LO16 .bss
|
144 |
|
|
0+019c <[^>]*> lw a1,5\(at\)
|
145 |
|
|
[ ]*19c: R_MIPS_LO16 .bss
|
146 |
|
|
0+01a0 <[^>]*> lw at,0\(gp\)
|
147 |
|
|
[ ]*1a0: R_MIPS_GOT16 .bss
|
148 |
|
|
0+01a4 <[^>]*> nop
|
149 |
|
|
0+01a8 <[^>]*> lw a0,1001\(at\)
|
150 |
|
|
[ ]*1a8: R_MIPS_LO16 .bss
|
151 |
|
|
0+01ac <[^>]*> lw a1,1005\(at\)
|
152 |
|
|
[ ]*1ac: R_MIPS_LO16 .bss
|
153 |
|
|
0+01b0 <[^>]*> lw at,0\(gp\)
|
154 |
|
|
[ ]*1b0: R_MIPS_GOT16 .data
|
155 |
|
|
0+01b4 <[^>]*> nop
|
156 |
|
|
0+01b8 <[^>]*> addu at,a1,at
|
157 |
|
|
0+01bc <[^>]*> lw a0,0\(at\)
|
158 |
|
|
[ ]*1bc: R_MIPS_LO16 .data
|
159 |
|
|
0+01c0 <[^>]*> lw a1,4\(at\)
|
160 |
|
|
[ ]*1c0: R_MIPS_LO16 .data
|
161 |
|
|
0+01c4 <[^>]*> lui at,0x0
|
162 |
|
|
[ ]*1c4: R_MIPS_GOT_HI16 big_external_data_label
|
163 |
|
|
0+01c8 <[^>]*> addu at,at,gp
|
164 |
|
|
0+01cc <[^>]*> lw at,0\(at\)
|
165 |
|
|
[ ]*1cc: R_MIPS_GOT_LO16 big_external_data_label
|
166 |
|
|
0+01d0 <[^>]*> nop
|
167 |
|
|
0+01d4 <[^>]*> addu at,a1,at
|
168 |
|
|
0+01d8 <[^>]*> lw a0,0\(at\)
|
169 |
|
|
0+01dc <[^>]*> lw a1,4\(at\)
|
170 |
|
|
0+01e0 <[^>]*> lui at,0x0
|
171 |
|
|
[ ]*1e0: R_MIPS_GOT_HI16 small_external_data_label
|
172 |
|
|
0+01e4 <[^>]*> addu at,at,gp
|
173 |
|
|
0+01e8 <[^>]*> lw at,0\(at\)
|
174 |
|
|
[ ]*1e8: R_MIPS_GOT_LO16 small_external_data_label
|
175 |
|
|
0+01ec <[^>]*> nop
|
176 |
|
|
0+01f0 <[^>]*> addu at,a1,at
|
177 |
|
|
0+01f4 <[^>]*> lw a0,0\(at\)
|
178 |
|
|
0+01f8 <[^>]*> lw a1,4\(at\)
|
179 |
|
|
0+01fc <[^>]*> lui at,0x0
|
180 |
|
|
[ ]*1fc: R_MIPS_GOT_HI16 big_external_common
|
181 |
|
|
0+0200 <[^>]*> addu at,at,gp
|
182 |
|
|
0+0204 <[^>]*> lw at,0\(at\)
|
183 |
|
|
[ ]*204: R_MIPS_GOT_LO16 big_external_common
|
184 |
|
|
0+0208 <[^>]*> nop
|
185 |
|
|
0+020c <[^>]*> addu at,a1,at
|
186 |
|
|
0+0210 <[^>]*> lw a0,0\(at\)
|
187 |
|
|
0+0214 <[^>]*> lw a1,4\(at\)
|
188 |
|
|
0+0218 <[^>]*> lui at,0x0
|
189 |
|
|
[ ]*218: R_MIPS_GOT_HI16 small_external_common
|
190 |
|
|
0+021c <[^>]*> addu at,at,gp
|
191 |
|
|
0+0220 <[^>]*> lw at,0\(at\)
|
192 |
|
|
[ ]*220: R_MIPS_GOT_LO16 small_external_common
|
193 |
|
|
0+0224 <[^>]*> nop
|
194 |
|
|
0+0228 <[^>]*> addu at,a1,at
|
195 |
|
|
0+022c <[^>]*> lw a0,0\(at\)
|
196 |
|
|
0+0230 <[^>]*> lw a1,4\(at\)
|
197 |
|
|
0+0234 <[^>]*> lw at,0\(gp\)
|
198 |
|
|
[ ]*234: R_MIPS_GOT16 .bss
|
199 |
|
|
0+0238 <[^>]*> nop
|
200 |
|
|
0+023c <[^>]*> addu at,a1,at
|
201 |
|
|
0+0240 <[^>]*> lw a0,0\(at\)
|
202 |
|
|
[ ]*240: R_MIPS_LO16 .bss
|
203 |
|
|
0+0244 <[^>]*> lw a1,4\(at\)
|
204 |
|
|
[ ]*244: R_MIPS_LO16 .bss
|
205 |
|
|
0+0248 <[^>]*> lw at,0\(gp\)
|
206 |
|
|
[ ]*248: R_MIPS_GOT16 .bss
|
207 |
|
|
0+024c <[^>]*> nop
|
208 |
|
|
0+0250 <[^>]*> addu at,a1,at
|
209 |
|
|
0+0254 <[^>]*> lw a0,1000\(at\)
|
210 |
|
|
[ ]*254: R_MIPS_LO16 .bss
|
211 |
|
|
0+0258 <[^>]*> lw a1,1004\(at\)
|
212 |
|
|
[ ]*258: R_MIPS_LO16 .bss
|
213 |
|
|
0+025c <[^>]*> lw at,0\(gp\)
|
214 |
|
|
[ ]*25c: R_MIPS_GOT16 .data
|
215 |
|
|
0+0260 <[^>]*> nop
|
216 |
|
|
0+0264 <[^>]*> addu at,a1,at
|
217 |
|
|
0+0268 <[^>]*> lw a0,1\(at\)
|
218 |
|
|
[ ]*268: R_MIPS_LO16 .data
|
219 |
|
|
0+026c <[^>]*> lw a1,5\(at\)
|
220 |
|
|
[ ]*26c: R_MIPS_LO16 .data
|
221 |
|
|
0+0270 <[^>]*> lui at,0x0
|
222 |
|
|
[ ]*270: R_MIPS_GOT_HI16 big_external_data_label
|
223 |
|
|
0+0274 <[^>]*> addu at,at,gp
|
224 |
|
|
0+0278 <[^>]*> lw at,0\(at\)
|
225 |
|
|
[ ]*278: R_MIPS_GOT_LO16 big_external_data_label
|
226 |
|
|
0+027c <[^>]*> nop
|
227 |
|
|
0+0280 <[^>]*> addu at,a1,at
|
228 |
|
|
0+0284 <[^>]*> lw a0,1\(at\)
|
229 |
|
|
0+0288 <[^>]*> lw a1,5\(at\)
|
230 |
|
|
0+028c <[^>]*> lui at,0x0
|
231 |
|
|
[ ]*28c: R_MIPS_GOT_HI16 small_external_data_label
|
232 |
|
|
0+0290 <[^>]*> addu at,at,gp
|
233 |
|
|
0+0294 <[^>]*> lw at,0\(at\)
|
234 |
|
|
[ ]*294: R_MIPS_GOT_LO16 small_external_data_label
|
235 |
|
|
0+0298 <[^>]*> nop
|
236 |
|
|
0+029c <[^>]*> addu at,a1,at
|
237 |
|
|
0+02a0 <[^>]*> lw a0,1\(at\)
|
238 |
|
|
0+02a4 <[^>]*> lw a1,5\(at\)
|
239 |
|
|
0+02a8 <[^>]*> lui at,0x0
|
240 |
|
|
[ ]*2a8: R_MIPS_GOT_HI16 big_external_common
|
241 |
|
|
0+02ac <[^>]*> addu at,at,gp
|
242 |
|
|
0+02b0 <[^>]*> lw at,0\(at\)
|
243 |
|
|
[ ]*2b0: R_MIPS_GOT_LO16 big_external_common
|
244 |
|
|
0+02b4 <[^>]*> nop
|
245 |
|
|
0+02b8 <[^>]*> addu at,a1,at
|
246 |
|
|
0+02bc <[^>]*> lw a0,1\(at\)
|
247 |
|
|
0+02c0 <[^>]*> lw a1,5\(at\)
|
248 |
|
|
0+02c4 <[^>]*> lui at,0x0
|
249 |
|
|
[ ]*2c4: R_MIPS_GOT_HI16 small_external_common
|
250 |
|
|
0+02c8 <[^>]*> addu at,at,gp
|
251 |
|
|
0+02cc <[^>]*> lw at,0\(at\)
|
252 |
|
|
[ ]*2cc: R_MIPS_GOT_LO16 small_external_common
|
253 |
|
|
0+02d0 <[^>]*> nop
|
254 |
|
|
0+02d4 <[^>]*> addu at,a1,at
|
255 |
|
|
0+02d8 <[^>]*> lw a0,1\(at\)
|
256 |
|
|
0+02dc <[^>]*> lw a1,5\(at\)
|
257 |
|
|
0+02e0 <[^>]*> lw at,0\(gp\)
|
258 |
|
|
[ ]*2e0: R_MIPS_GOT16 .bss
|
259 |
|
|
0+02e4 <[^>]*> nop
|
260 |
|
|
0+02e8 <[^>]*> addu at,a1,at
|
261 |
|
|
0+02ec <[^>]*> lw a0,1\(at\)
|
262 |
|
|
[ ]*2ec: R_MIPS_LO16 .bss
|
263 |
|
|
0+02f0 <[^>]*> lw a1,5\(at\)
|
264 |
|
|
[ ]*2f0: R_MIPS_LO16 .bss
|
265 |
|
|
0+02f4 <[^>]*> lw at,0\(gp\)
|
266 |
|
|
[ ]*2f4: R_MIPS_GOT16 .bss
|
267 |
|
|
0+02f8 <[^>]*> nop
|
268 |
|
|
0+02fc <[^>]*> addu at,a1,at
|
269 |
|
|
0+0300 <[^>]*> lw a0,1001\(at\)
|
270 |
|
|
[ ]*300: R_MIPS_LO16 .bss
|
271 |
|
|
0+0304 <[^>]*> lw a1,1005\(at\)
|
272 |
|
|
[ ]*304: R_MIPS_LO16 .bss
|
273 |
|
|
...
|