1 |
11 |
rafaelcalc |
|
2 |
|
|
rv32ui-p-lb: formato do arquivo elf32-littleriscv
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
Desmontagem da seção .text.init:
|
6 |
|
|
|
7 |
|
|
80000000 <_start>:
|
8 |
|
|
80000000: 0480006f j 80000048
|
9 |
|
|
|
10 |
|
|
80000004 :
|
11 |
|
|
80000004: 34202f73 csrr t5,mcause
|
12 |
|
|
80000008: 00800f93 li t6,8
|
13 |
|
|
8000000c: 03ff0863 beq t5,t6,8000003c
|
14 |
|
|
80000010: 00900f93 li t6,9
|
15 |
|
|
80000014: 03ff0463 beq t5,t6,8000003c
|
16 |
|
|
80000018: 00b00f93 li t6,11
|
17 |
|
|
8000001c: 03ff0063 beq t5,t6,8000003c
|
18 |
|
|
80000020: 00000f13 li t5,0
|
19 |
|
|
80000024: 000f0463 beqz t5,8000002c
|
20 |
|
|
80000028: 000f0067 jr t5
|
21 |
|
|
8000002c: 34202f73 csrr t5,mcause
|
22 |
|
|
80000030: 000f5463 bgez t5,80000038
|
23 |
|
|
80000034: 0040006f j 80000038
|
24 |
|
|
|
25 |
|
|
80000038 :
|
26 |
|
|
80000038: 5391e193 ori gp,gp,1337
|
27 |
|
|
|
28 |
|
|
8000003c :
|
29 |
|
|
8000003c: 00001f17 auipc t5,0x1
|
30 |
|
|
80000040: fc3f2223 sw gp,-60(t5) # 80001000
|
31 |
|
|
80000044: ff9ff06f j 8000003c
|
32 |
|
|
|
33 |
|
|
80000048 :
|
34 |
|
|
80000048: 00000093 li ra,0
|
35 |
|
|
8000004c: 00000113 li sp,0
|
36 |
|
|
80000050: 00000193 li gp,0
|
37 |
|
|
80000054: 00000213 li tp,0
|
38 |
|
|
80000058: 00000293 li t0,0
|
39 |
|
|
8000005c: 00000313 li t1,0
|
40 |
|
|
80000060: 00000393 li t2,0
|
41 |
|
|
80000064: 00000413 li s0,0
|
42 |
|
|
80000068: 00000493 li s1,0
|
43 |
|
|
8000006c: 00000513 li a0,0
|
44 |
|
|
80000070: 00000593 li a1,0
|
45 |
|
|
80000074: 00000613 li a2,0
|
46 |
|
|
80000078: 00000693 li a3,0
|
47 |
|
|
8000007c: 00000713 li a4,0
|
48 |
|
|
80000080: 00000793 li a5,0
|
49 |
|
|
80000084: 00000813 li a6,0
|
50 |
|
|
80000088: 00000893 li a7,0
|
51 |
|
|
8000008c: 00000913 li s2,0
|
52 |
|
|
80000090: 00000993 li s3,0
|
53 |
|
|
80000094: 00000a13 li s4,0
|
54 |
|
|
80000098: 00000a93 li s5,0
|
55 |
|
|
8000009c: 00000b13 li s6,0
|
56 |
|
|
800000a0: 00000b93 li s7,0
|
57 |
|
|
800000a4: 00000c13 li s8,0
|
58 |
|
|
800000a8: 00000c93 li s9,0
|
59 |
|
|
800000ac: 00000d13 li s10,0
|
60 |
|
|
800000b0: 00000d93 li s11,0
|
61 |
|
|
800000b4: 00000e13 li t3,0
|
62 |
|
|
800000b8: 00000e93 li t4,0
|
63 |
|
|
800000bc: 00000f13 li t5,0
|
64 |
|
|
800000c0: 00000f93 li t6,0
|
65 |
|
|
800000c4: f1402573 csrr a0,mhartid
|
66 |
|
|
800000c8: 00051063 bnez a0,800000c8
|
67 |
|
|
800000cc: 00000297 auipc t0,0x0
|
68 |
|
|
800000d0: 01028293 addi t0,t0,16 # 800000dc
|
69 |
|
|
800000d4: 30529073 csrw mtvec,t0
|
70 |
|
|
800000d8: 18005073 csrwi satp,0
|
71 |
|
|
800000dc: 00000297 auipc t0,0x0
|
72 |
|
|
800000e0: 02028293 addi t0,t0,32 # 800000fc
|
73 |
|
|
800000e4: 30529073 csrw mtvec,t0
|
74 |
|
|
800000e8: 800002b7 lui t0,0x80000
|
75 |
|
|
800000ec: fff28293 addi t0,t0,-1 # 7fffffff <_end+0xffffdfef>
|
76 |
|
|
800000f0: 3b029073 csrw pmpaddr0,t0
|
77 |
|
|
800000f4: 01f00293 li t0,31
|
78 |
|
|
800000f8: 3a029073 csrw pmpcfg0,t0
|
79 |
|
|
800000fc: 00000297 auipc t0,0x0
|
80 |
|
|
80000100: 01828293 addi t0,t0,24 # 80000114
|
81 |
|
|
80000104: 30529073 csrw mtvec,t0
|
82 |
|
|
80000108: 30205073 csrwi medeleg,0
|
83 |
|
|
8000010c: 30305073 csrwi mideleg,0
|
84 |
|
|
80000110: 30405073 csrwi mie,0
|
85 |
|
|
80000114: 00000193 li gp,0
|
86 |
|
|
80000118: 00000297 auipc t0,0x0
|
87 |
|
|
8000011c: eec28293 addi t0,t0,-276 # 80000004
|
88 |
|
|
80000120: 30529073 csrw mtvec,t0
|
89 |
|
|
80000124: 00100513 li a0,1
|
90 |
|
|
80000128: 01f51513 slli a0,a0,0x1f
|
91 |
|
|
8000012c: 00054c63 bltz a0,80000144
|
92 |
|
|
80000130: 0ff0000f fence
|
93 |
|
|
80000134: 00100193 li gp,1
|
94 |
|
|
80000138: 05d00893 li a7,93
|
95 |
|
|
8000013c: 00000513 li a0,0
|
96 |
|
|
80000140: 00000073 ecall
|
97 |
|
|
80000144: 00000293 li t0,0
|
98 |
|
|
80000148: 00028a63 beqz t0,8000015c
|
99 |
|
|
8000014c: 10529073 csrw stvec,t0
|
100 |
|
|
80000150: 0000b2b7 lui t0,0xb
|
101 |
|
|
80000154: 10928293 addi t0,t0,265 # b109 <_start-0x7fff4ef7>
|
102 |
|
|
80000158: 30229073 csrw medeleg,t0
|
103 |
|
|
8000015c: 30005073 csrwi mstatus,0
|
104 |
|
|
80000160: 00000297 auipc t0,0x0
|
105 |
|
|
80000164: 01428293 addi t0,t0,20 # 80000174
|
106 |
|
|
80000168: 34129073 csrw mepc,t0
|
107 |
|
|
8000016c: f1402573 csrr a0,mhartid
|
108 |
|
|
80000170: 30200073 mret
|
109 |
|
|
|
110 |
|
|
80000174 :
|
111 |
|
|
80000174: 00002097 auipc ra,0x2
|
112 |
|
|
80000178: e8c08093 addi ra,ra,-372 # 80002000
|
113 |
|
|
8000017c: 00008703 lb a4,0(ra)
|
114 |
|
|
80000180: fff00393 li t2,-1
|
115 |
|
|
80000184: 00200193 li gp,2
|
116 |
|
|
80000188: 22771c63 bne a4,t2,800003c0
|
117 |
|
|
|
118 |
|
|
8000018c :
|
119 |
|
|
8000018c: 00002097 auipc ra,0x2
|
120 |
|
|
80000190: e7408093 addi ra,ra,-396 # 80002000
|
121 |
|
|
80000194: 00108703 lb a4,1(ra)
|
122 |
|
|
80000198: 00000393 li t2,0
|
123 |
|
|
8000019c: 00300193 li gp,3
|
124 |
|
|
800001a0: 22771063 bne a4,t2,800003c0
|
125 |
|
|
|
126 |
|
|
800001a4 :
|
127 |
|
|
800001a4: 00002097 auipc ra,0x2
|
128 |
|
|
800001a8: e5c08093 addi ra,ra,-420 # 80002000
|
129 |
|
|
800001ac: 00208703 lb a4,2(ra)
|
130 |
|
|
800001b0: ff000393 li t2,-16
|
131 |
|
|
800001b4: 00400193 li gp,4
|
132 |
|
|
800001b8: 20771463 bne a4,t2,800003c0
|
133 |
|
|
|
134 |
|
|
800001bc :
|
135 |
|
|
800001bc: 00002097 auipc ra,0x2
|
136 |
|
|
800001c0: e4408093 addi ra,ra,-444 # 80002000
|
137 |
|
|
800001c4: 00308703 lb a4,3(ra)
|
138 |
|
|
800001c8: 00f00393 li t2,15
|
139 |
|
|
800001cc: 00500193 li gp,5
|
140 |
|
|
800001d0: 1e771863 bne a4,t2,800003c0
|
141 |
|
|
|
142 |
|
|
800001d4 :
|
143 |
|
|
800001d4: 00002097 auipc ra,0x2
|
144 |
|
|
800001d8: e2f08093 addi ra,ra,-465 # 80002003
|
145 |
|
|
800001dc: ffd08703 lb a4,-3(ra)
|
146 |
|
|
800001e0: fff00393 li t2,-1
|
147 |
|
|
800001e4: 00600193 li gp,6
|
148 |
|
|
800001e8: 1c771c63 bne a4,t2,800003c0
|
149 |
|
|
|
150 |
|
|
800001ec :
|
151 |
|
|
800001ec: 00002097 auipc ra,0x2
|
152 |
|
|
800001f0: e1708093 addi ra,ra,-489 # 80002003
|
153 |
|
|
800001f4: ffe08703 lb a4,-2(ra)
|
154 |
|
|
800001f8: 00000393 li t2,0
|
155 |
|
|
800001fc: 00700193 li gp,7
|
156 |
|
|
80000200: 1c771063 bne a4,t2,800003c0
|
157 |
|
|
|
158 |
|
|
80000204 :
|
159 |
|
|
80000204: 00002097 auipc ra,0x2
|
160 |
|
|
80000208: dff08093 addi ra,ra,-513 # 80002003
|
161 |
|
|
8000020c: fff08703 lb a4,-1(ra)
|
162 |
|
|
80000210: ff000393 li t2,-16
|
163 |
|
|
80000214: 00800193 li gp,8
|
164 |
|
|
80000218: 1a771463 bne a4,t2,800003c0
|
165 |
|
|
|
166 |
|
|
8000021c :
|
167 |
|
|
8000021c: 00002097 auipc ra,0x2
|
168 |
|
|
80000220: de708093 addi ra,ra,-537 # 80002003
|
169 |
|
|
80000224: 00008703 lb a4,0(ra)
|
170 |
|
|
80000228: 00f00393 li t2,15
|
171 |
|
|
8000022c: 00900193 li gp,9
|
172 |
|
|
80000230: 18771863 bne a4,t2,800003c0
|
173 |
|
|
|
174 |
|
|
80000234 :
|
175 |
|
|
80000234: 00002097 auipc ra,0x2
|
176 |
|
|
80000238: dcc08093 addi ra,ra,-564 # 80002000
|
177 |
|
|
8000023c: fe008093 addi ra,ra,-32
|
178 |
|
|
80000240: 02008283 lb t0,32(ra)
|
179 |
|
|
80000244: fff00393 li t2,-1
|
180 |
|
|
80000248: 00a00193 li gp,10
|
181 |
|
|
8000024c: 16729a63 bne t0,t2,800003c0
|
182 |
|
|
|
183 |
|
|
80000250 :
|
184 |
|
|
80000250: 00002097 auipc ra,0x2
|
185 |
|
|
80000254: db008093 addi ra,ra,-592 # 80002000
|
186 |
|
|
80000258: ffa08093 addi ra,ra,-6
|
187 |
|
|
8000025c: 00708283 lb t0,7(ra)
|
188 |
|
|
80000260: 00000393 li t2,0
|
189 |
|
|
80000264: 00b00193 li gp,11
|
190 |
|
|
80000268: 14729c63 bne t0,t2,800003c0
|
191 |
|
|
|
192 |
|
|
8000026c :
|
193 |
|
|
8000026c: 00c00193 li gp,12
|
194 |
|
|
80000270: 00000213 li tp,0
|
195 |
|
|
80000274: 00002097 auipc ra,0x2
|
196 |
|
|
80000278: d8d08093 addi ra,ra,-627 # 80002001
|
197 |
|
|
8000027c: 00108703 lb a4,1(ra)
|
198 |
|
|
80000280: 00070313 mv t1,a4
|
199 |
|
|
80000284: ff000393 li t2,-16
|
200 |
|
|
80000288: 12731c63 bne t1,t2,800003c0
|
201 |
|
|
8000028c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
202 |
|
|
80000290: 00200293 li t0,2
|
203 |
|
|
80000294: fe5210e3 bne tp,t0,80000274
|
204 |
|
|
|
205 |
|
|
80000298 :
|
206 |
|
|
80000298: 00d00193 li gp,13
|
207 |
|
|
8000029c: 00000213 li tp,0
|
208 |
|
|
800002a0: 00002097 auipc ra,0x2
|
209 |
|
|
800002a4: d6208093 addi ra,ra,-670 # 80002002
|
210 |
|
|
800002a8: 00108703 lb a4,1(ra)
|
211 |
|
|
800002ac: 00000013 nop
|
212 |
|
|
800002b0: 00070313 mv t1,a4
|
213 |
|
|
800002b4: 00f00393 li t2,15
|
214 |
|
|
800002b8: 10731463 bne t1,t2,800003c0
|
215 |
|
|
800002bc: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
216 |
|
|
800002c0: 00200293 li t0,2
|
217 |
|
|
800002c4: fc521ee3 bne tp,t0,800002a0
|
218 |
|
|
|
219 |
|
|
800002c8 :
|
220 |
|
|
800002c8: 00e00193 li gp,14
|
221 |
|
|
800002cc: 00000213 li tp,0
|
222 |
|
|
800002d0: 00002097 auipc ra,0x2
|
223 |
|
|
800002d4: d3008093 addi ra,ra,-720 # 80002000
|
224 |
|
|
800002d8: 00108703 lb a4,1(ra)
|
225 |
|
|
800002dc: 00000013 nop
|
226 |
|
|
800002e0: 00000013 nop
|
227 |
|
|
800002e4: 00070313 mv t1,a4
|
228 |
|
|
800002e8: 00000393 li t2,0
|
229 |
|
|
800002ec: 0c731a63 bne t1,t2,800003c0
|
230 |
|
|
800002f0: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
231 |
|
|
800002f4: 00200293 li t0,2
|
232 |
|
|
800002f8: fc521ce3 bne tp,t0,800002d0
|
233 |
|
|
|
234 |
|
|
800002fc :
|
235 |
|
|
800002fc: 00f00193 li gp,15
|
236 |
|
|
80000300: 00000213 li tp,0
|
237 |
|
|
80000304: 00002097 auipc ra,0x2
|
238 |
|
|
80000308: cfd08093 addi ra,ra,-771 # 80002001
|
239 |
|
|
8000030c: 00108703 lb a4,1(ra)
|
240 |
|
|
80000310: ff000393 li t2,-16
|
241 |
|
|
80000314: 0a771663 bne a4,t2,800003c0
|
242 |
|
|
80000318: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
243 |
|
|
8000031c: 00200293 li t0,2
|
244 |
|
|
80000320: fe5212e3 bne tp,t0,80000304
|
245 |
|
|
|
246 |
|
|
80000324 :
|
247 |
|
|
80000324: 01000193 li gp,16
|
248 |
|
|
80000328: 00000213 li tp,0
|
249 |
|
|
8000032c: 00002097 auipc ra,0x2
|
250 |
|
|
80000330: cd608093 addi ra,ra,-810 # 80002002
|
251 |
|
|
80000334: 00000013 nop
|
252 |
|
|
80000338: 00108703 lb a4,1(ra)
|
253 |
|
|
8000033c: 00f00393 li t2,15
|
254 |
|
|
80000340: 08771063 bne a4,t2,800003c0
|
255 |
|
|
80000344: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
256 |
|
|
80000348: 00200293 li t0,2
|
257 |
|
|
8000034c: fe5210e3 bne tp,t0,8000032c
|
258 |
|
|
|
259 |
|
|
80000350 :
|
260 |
|
|
80000350: 01100193 li gp,17
|
261 |
|
|
80000354: 00000213 li tp,0
|
262 |
|
|
80000358: 00002097 auipc ra,0x2
|
263 |
|
|
8000035c: ca808093 addi ra,ra,-856 # 80002000
|
264 |
|
|
80000360: 00000013 nop
|
265 |
|
|
80000364: 00000013 nop
|
266 |
|
|
80000368: 00108703 lb a4,1(ra)
|
267 |
|
|
8000036c: 00000393 li t2,0
|
268 |
|
|
80000370: 04771863 bne a4,t2,800003c0
|
269 |
|
|
80000374: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
|
270 |
|
|
80000378: 00200293 li t0,2
|
271 |
|
|
8000037c: fc521ee3 bne tp,t0,80000358
|
272 |
|
|
|
273 |
|
|
80000380 :
|
274 |
|
|
80000380: 00002297 auipc t0,0x2
|
275 |
|
|
80000384: c8028293 addi t0,t0,-896 # 80002000
|
276 |
|
|
80000388: 00028103 lb sp,0(t0)
|
277 |
|
|
8000038c: 00200113 li sp,2
|
278 |
|
|
80000390: 00200393 li t2,2
|
279 |
|
|
80000394: 01200193 li gp,18
|
280 |
|
|
80000398: 02711463 bne sp,t2,800003c0
|
281 |
|
|
|
282 |
|
|
8000039c :
|
283 |
|
|
8000039c: 00002297 auipc t0,0x2
|
284 |
|
|
800003a0: c6428293 addi t0,t0,-924 # 80002000
|
285 |
|
|
800003a4: 00028103 lb sp,0(t0)
|
286 |
|
|
800003a8: 00000013 nop
|
287 |
|
|
800003ac: 00200113 li sp,2
|
288 |
|
|
800003b0: 00200393 li t2,2
|
289 |
|
|
800003b4: 01300193 li gp,19
|
290 |
|
|
800003b8: 00711463 bne sp,t2,800003c0
|
291 |
|
|
800003bc: 02301063 bne zero,gp,800003dc
|
292 |
|
|
|
293 |
|
|
800003c0 :
|
294 |
|
|
800003c0: 0ff0000f fence
|
295 |
|
|
800003c4: 00018063 beqz gp,800003c4
|
296 |
|
|
800003c8: 00119193 slli gp,gp,0x1
|
297 |
|
|
800003cc: 0011e193 ori gp,gp,1
|
298 |
|
|
800003d0: 05d00893 li a7,93
|
299 |
|
|
800003d4: 00018513 mv a0,gp
|
300 |
|
|
800003d8: 00000073 ecall
|
301 |
|
|
|
302 |
|
|
800003dc :
|
303 |
|
|
800003dc: 0ff0000f fence
|
304 |
|
|
800003e0: 00100193 li gp,1
|
305 |
|
|
800003e4: 05d00893 li a7,93
|
306 |
|
|
800003e8: 00000513 li a0,0
|
307 |
|
|
800003ec: 00000073 ecall
|
308 |
|
|
800003f0: c0001073 unimp
|
309 |
|
|
800003f4: 0000 unimp
|
310 |
|
|
800003f6: 0000 unimp
|
311 |
|
|
800003f8: 0000 unimp
|
312 |
|
|
800003fa: 0000 unimp
|
313 |
|
|
|
314 |
|
|
Desmontagem da seção .data:
|
315 |
|
|
|
316 |
|
|
80002000 :
|
317 |
|
|
80002000: 0xff
|
318 |
|
|
|
319 |
|
|
80002001 :
|
320 |
|
|
80002001: fsw fs0,32(s0)
|
321 |
|
|
|
322 |
|
|
80002002 :
|
323 |
|
|
80002002: addi a2,sp,988
|
324 |
|
|
|
325 |
|
|
80002003 :
|
326 |
|
|
80002003: 0000000f fence unknown,unknown
|
327 |
|
|
80002007: 0000 unimp
|
328 |
|
|
80002009: 0000 unimp
|
329 |
|
|
8000200b: 0000 unimp
|
330 |
|
|
8000200d: 0000 unimp
|
331 |
|
|
8000200f: 00 Endereço 0x000000008000200f está fora dos limites.
|
332 |
|
|
|