-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpadd.dump
954 lines (901 loc) · 38.9 KB
/
padd.dump
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
padd: 文件格式 elf64-littleriscv
Disassembly of section .text:
00000000000100b0 <_start>:
100b0: 00002197 auipc gp,0x2
100b4: ed018193 addi gp,gp,-304 # 11f80 <__global_pointer$>
100b8: 81818513 addi a0,gp,-2024 # 11798 <_edata>
100bc: 86818613 addi a2,gp,-1944 # 117e8 <_end>
100c0: 8e09 sub a2,a2,a0
100c2: 4581 li a1,0
100c4: 354000ef jal ra,10418 <memset>
100c8: 00000517 auipc a0,0x0
100cc: 29a50513 addi a0,a0,666 # 10362 <__libc_fini_array>
100d0: 00000097 auipc ra,0x0
100d4: 25e080e7 jalr 606(ra) # 1032e <atexit>
100d8: 00000097 auipc ra,0x0
100dc: 2d8080e7 jalr 728(ra) # 103b0 <__libc_init_array>
100e0: 4502 lw a0,0(sp)
100e2: 002c addi a1,sp,8
100e4: 4601 li a2,0
100e6: 126000ef jal ra,1020c <main>
100ea: 00000317 auipc t1,0x0
100ee: 25230067 jr 594(t1) # 1033c <exit>
00000000000100f2 <_fini>:
100f2: 8082 ret
00000000000100f4 <deregister_tm_clones>:
100f4: 6545 lui a0,0x11
100f6: 67c5 lui a5,0x11
100f8: 78050713 addi a4,a0,1920 # 11780 <__TMC_END__>
100fc: 78078793 addi a5,a5,1920 # 11780 <__TMC_END__>
10100: 00e78b63 beq a5,a4,10116 <deregister_tm_clones+0x22>
10104: 00000337 lui t1,0x0
10108: 00030313 mv t1,t1
1010c: 00030563 beqz t1,10116 <deregister_tm_clones+0x22>
10110: 78050513 addi a0,a0,1920
10114: 8302 jr t1
10116: 8082 ret
0000000000010118 <register_tm_clones>:
10118: 67c5 lui a5,0x11
1011a: 6545 lui a0,0x11
1011c: 78078593 addi a1,a5,1920 # 11780 <__TMC_END__>
10120: 78050793 addi a5,a0,1920 # 11780 <__TMC_END__>
10124: 8d9d sub a1,a1,a5
10126: 858d srai a1,a1,0x3
10128: 4789 li a5,2
1012a: 02f5c5b3 div a1,a1,a5
1012e: c991 beqz a1,10142 <register_tm_clones+0x2a>
10130: 00000337 lui t1,0x0
10134: 00030313 mv t1,t1
10138: 00030563 beqz t1,10142 <register_tm_clones+0x2a>
1013c: 78050513 addi a0,a0,1920
10140: 8302 jr t1
10142: 8082 ret
0000000000010144 <__do_global_dtors_aux>:
10144: 8201c703 lbu a4,-2016(gp) # 117a0 <completed.5184>
10148: eb15 bnez a4,1017c <__do_global_dtors_aux+0x38>
1014a: 1141 addi sp,sp,-16
1014c: e022 sd s0,0(sp)
1014e: e406 sd ra,8(sp)
10150: 843e mv s0,a5
10152: fa3ff0ef jal ra,100f4 <deregister_tm_clones>
10156: 000007b7 lui a5,0x0
1015a: 00078793 mv a5,a5
1015e: cb81 beqz a5,1016e <__do_global_dtors_aux+0x2a>
10160: 6545 lui a0,0x11
10162: 9e850513 addi a0,a0,-1560 # 109e8 <__EH_FRAME_BEGIN__>
10166: ffff0097 auipc ra,0xffff0
1016a: e9a080e7 jalr -358(ra) # 0 <_start-0x100b0>
1016e: 4785 li a5,1
10170: 82f18023 sb a5,-2016(gp) # 117a0 <completed.5184>
10174: 60a2 ld ra,8(sp)
10176: 6402 ld s0,0(sp)
10178: 0141 addi sp,sp,16
1017a: 8082 ret
1017c: 8082 ret
000000000001017e <frame_dummy>:
1017e: 000007b7 lui a5,0x0
10182: 00078793 mv a5,a5
10186: cf99 beqz a5,101a4 <frame_dummy+0x26>
10188: 65c5 lui a1,0x11
1018a: 6545 lui a0,0x11
1018c: 1141 addi sp,sp,-16
1018e: 7a858593 addi a1,a1,1960 # 117a8 <object.5189>
10192: 9e850513 addi a0,a0,-1560 # 109e8 <__EH_FRAME_BEGIN__>
10196: e406 sd ra,8(sp)
10198: ffff0097 auipc ra,0xffff0
1019c: e68080e7 jalr -408(ra) # 0 <_start-0x100b0>
101a0: 60a2 ld ra,8(sp)
101a2: 0141 addi sp,sp,16
101a4: f75ff06f j 10118 <register_tm_clones>
00000000000101a8 <prog_syscall>:
101a8: fe010113 addi sp,sp,-32
101ac: 00813c23 sd s0,24(sp)
101b0: 02010413 addi s0,sp,32
101b4: 00050793 mv a5,a0
101b8: fef42623 sw a5,-20(s0)
101bc: fec42783 lw a5,-20(s0)
101c0: 0007879b sext.w a5,a5
101c4: 00079a63 bnez a5,101d8 <prog_syscall+0x30>
101c8: 00000513 li a0,0
101cc: 00000073 ecall
101d0: 00000793 li a5,0
101d4: 0280006f j 101fc <prog_syscall+0x54>
101d8: fec42783 lw a5,-20(s0)
101dc: 0007871b sext.w a4,a5
101e0: 00a00793 li a5,10
101e4: 00f71a63 bne a4,a5,101f8 <prog_syscall+0x50>
101e8: 00a00513 li a0,10
101ec: 00000073 ecall
101f0: 00000793 li a5,0
101f4: 0080006f j 101fc <prog_syscall+0x54>
101f8: fff00793 li a5,-1
101fc: 00078513 mv a0,a5
10200: 01813403 ld s0,24(sp)
10204: 02010113 addi sp,sp,32
10208: 00008067 ret
000000000001020c <main>:
1020c: fe010113 addi sp,sp,-32
10210: 00113c23 sd ra,24(sp)
10214: 00813823 sd s0,16(sp)
10218: 02010413 addi s0,sp,32
1021c: fe042623 sw zero,-20(s0)
10220: fe042623 sw zero,-20(s0)
10224: 0480006f j 1026c <main+0x60>
10228: 000117b7 lui a5,0x11
1022c: fec42703 lw a4,-20(s0)
10230: 00271713 slli a4,a4,0x2
10234: 01078793 addi a5,a5,16 # 11010 <__fini_array_end>
10238: 00f707b3 add a5,a4,a5
1023c: 0007a783 lw a5,0(a5)
10240: 00a7879b addiw a5,a5,10
10244: 0007871b sext.w a4,a5
10248: 000117b7 lui a5,0x11
1024c: fec42683 lw a3,-20(s0)
10250: 00269693 slli a3,a3,0x2
10254: 01078793 addi a5,a5,16 # 11010 <__fini_array_end>
10258: 00f687b3 add a5,a3,a5
1025c: 00e7a023 sw a4,0(a5)
10260: fec42783 lw a5,-20(s0)
10264: 0017879b addiw a5,a5,1
10268: fef42623 sw a5,-20(s0)
1026c: fec42783 lw a5,-20(s0)
10270: 0007871b sext.w a4,a5
10274: 00400793 li a5,4
10278: fae7d8e3 ble a4,a5,10228 <main+0x1c>
1027c: 00500793 li a5,5
10280: fef42623 sw a5,-20(s0)
10284: 0480006f j 102cc <main+0xc0>
10288: 000117b7 lui a5,0x11
1028c: fec42703 lw a4,-20(s0)
10290: 00271713 slli a4,a4,0x2
10294: 01078793 addi a5,a5,16 # 11010 <__fini_array_end>
10298: 00f707b3 add a5,a4,a5
1029c: 0007a783 lw a5,0(a5)
102a0: ffb7879b addiw a5,a5,-5
102a4: 0007871b sext.w a4,a5
102a8: 000117b7 lui a5,0x11
102ac: fec42683 lw a3,-20(s0)
102b0: 00269693 slli a3,a3,0x2
102b4: 01078793 addi a5,a5,16 # 11010 <__fini_array_end>
102b8: 00f687b3 add a5,a3,a5
102bc: 00e7a023 sw a4,0(a5)
102c0: fec42783 lw a5,-20(s0)
102c4: 0017879b addiw a5,a5,1
102c8: fef42623 sw a5,-20(s0)
102cc: fec42783 lw a5,-20(s0)
102d0: 0007871b sext.w a4,a5
102d4: 00900793 li a5,9
102d8: fae7d8e3 ble a4,a5,10288 <main+0x7c>
102dc: 000117b7 lui a5,0x11
102e0: 0107a783 lw a5,16(a5) # 11010 <__fini_array_end>
102e4: 00078713 mv a4,a5
102e8: 00b00793 li a5,11
102ec: 02f71463 bne a4,a5,10314 <main+0x108>
102f0: 000117b7 lui a5,0x11
102f4: 01078793 addi a5,a5,16 # 11010 <__fini_array_end>
102f8: 0047a783 lw a5,4(a5)
102fc: 00078713 mv a4,a5
10300: 00c00793 li a5,12
10304: 00f71863 bne a4,a5,10314 <main+0x108>
10308: 00000513 li a0,0
1030c: 00000097 auipc ra,0x0
10310: e9c080e7 jalr -356(ra) # 101a8 <prog_syscall>
10314: 00000793 li a5,0
10318: 00078513 mv a0,a5
1031c: 01813083 ld ra,24(sp)
10320: 01013403 ld s0,16(sp)
10324: 02010113 addi sp,sp,32
10328: 00008067 ret
...
000000000001032e <atexit>:
1032e: 85aa mv a1,a0
10330: 4681 li a3,0
10332: 4601 li a2,0
10334: 4501 li a0,0
10336: 18c0006f j 104c2 <__register_exitproc>
...
000000000001033c <exit>:
1033c: 1141 addi sp,sp,-16
1033e: 4581 li a1,0
10340: e022 sd s0,0(sp)
10342: e406 sd ra,8(sp)
10344: 842a mv s0,a0
10346: 1e4000ef jal ra,1052a <__call_exitprocs>
1034a: 67c5 lui a5,0x11
1034c: 7887b503 ld a0,1928(a5) # 11788 <_global_impure_ptr>
10350: 6d3c ld a5,88(a0)
10352: c391 beqz a5,10356 <exit+0x1a>
10354: 9782 jalr a5
10356: 8522 mv a0,s0
10358: 00000097 auipc ra,0x0
1035c: 66e080e7 jalr 1646(ra) # 109c6 <_exit>
...
0000000000010362 <__libc_fini_array>:
10362: 7179 addi sp,sp,-48
10364: 67c5 lui a5,0x11
10366: 6745 lui a4,0x11
10368: f022 sd s0,32(sp)
1036a: 00870713 addi a4,a4,8 # 11008 <__init_array_end>
1036e: 01078413 addi s0,a5,16 # 11010 <__fini_array_end>
10372: 8c19 sub s0,s0,a4
10374: ec26 sd s1,24(sp)
10376: e84a sd s2,16(sp)
10378: e44e sd s3,8(sp)
1037a: f406 sd ra,40(sp)
1037c: 840d srai s0,s0,0x3
1037e: 4481 li s1,0
10380: 01078913 addi s2,a5,16
10384: 59e1 li s3,-8
10386: 00941c63 bne s0,s1,1039e <__libc_fini_array+0x3c>
1038a: 7402 ld s0,32(sp)
1038c: 70a2 ld ra,40(sp)
1038e: 64e2 ld s1,24(sp)
10390: 6942 ld s2,16(sp)
10392: 69a2 ld s3,8(sp)
10394: 6145 addi sp,sp,48
10396: 00000317 auipc t1,0x0
1039a: d5c30067 jr -676(t1) # 100f2 <_fini>
1039e: 033487b3 mul a5,s1,s3
103a2: 0485 addi s1,s1,1
103a4: 97ca add a5,a5,s2
103a6: ff87b783 ld a5,-8(a5)
103aa: 9782 jalr a5
103ac: bfe9 j 10386 <__libc_fini_array+0x24>
...
00000000000103b0 <__libc_init_array>:
103b0: 1101 addi sp,sp,-32
103b2: e822 sd s0,16(sp)
103b4: e426 sd s1,8(sp)
103b6: 6445 lui s0,0x11
103b8: 64c5 lui s1,0x11
103ba: 00048793 mv a5,s1
103be: 00040413 mv s0,s0
103c2: 8c1d sub s0,s0,a5
103c4: e04a sd s2,0(sp)
103c6: ec06 sd ra,24(sp)
103c8: 840d srai s0,s0,0x3
103ca: 00048493 mv s1,s1
103ce: 4901 li s2,0
103d0: 02891963 bne s2,s0,10402 <__libc_init_array+0x52>
103d4: 64c5 lui s1,0x11
103d6: 00000097 auipc ra,0x0
103da: d1c080e7 jalr -740(ra) # 100f2 <_fini>
103de: 6445 lui s0,0x11
103e0: 00048793 mv a5,s1
103e4: 00840413 addi s0,s0,8 # 11008 <__init_array_end>
103e8: 8c1d sub s0,s0,a5
103ea: 840d srai s0,s0,0x3
103ec: 00048493 mv s1,s1
103f0: 4901 li s2,0
103f2: 00891d63 bne s2,s0,1040c <__libc_init_array+0x5c>
103f6: 60e2 ld ra,24(sp)
103f8: 6442 ld s0,16(sp)
103fa: 64a2 ld s1,8(sp)
103fc: 6902 ld s2,0(sp)
103fe: 6105 addi sp,sp,32
10400: 8082 ret
10402: 609c ld a5,0(s1)
10404: 0905 addi s2,s2,1
10406: 04a1 addi s1,s1,8
10408: 9782 jalr a5
1040a: b7d9 j 103d0 <__libc_init_array+0x20>
1040c: 609c ld a5,0(s1)
1040e: 0905 addi s2,s2,1
10410: 04a1 addi s1,s1,8
10412: 9782 jalr a5
10414: bff9 j 103f2 <__libc_init_array+0x42>
...
0000000000010418 <memset>:
10418: 483d li a6,15
1041a: 872a mv a4,a0
1041c: 02c87163 bleu a2,a6,1043e <memset+0x26>
10420: 00f77793 andi a5,a4,15
10424: e3c1 bnez a5,104a4 <memset+0x8c>
10426: e1bd bnez a1,1048c <memset+0x74>
10428: ff067693 andi a3,a2,-16
1042c: 8a3d andi a2,a2,15
1042e: 96ba add a3,a3,a4
10430: e30c sd a1,0(a4)
10432: e70c sd a1,8(a4)
10434: 0741 addi a4,a4,16
10436: fed76de3 bltu a4,a3,10430 <memset+0x18>
1043a: e211 bnez a2,1043e <memset+0x26>
1043c: 8082 ret
1043e: 40c806b3 sub a3,a6,a2
10442: 068a slli a3,a3,0x2
10444: 00000297 auipc t0,0x0
10448: 9696 add a3,a3,t0
1044a: 00a68067 jr 10(a3)
1044e: 00b70723 sb a1,14(a4)
10452: 00b706a3 sb a1,13(a4)
10456: 00b70623 sb a1,12(a4)
1045a: 00b705a3 sb a1,11(a4)
1045e: 00b70523 sb a1,10(a4)
10462: 00b704a3 sb a1,9(a4)
10466: 00b70423 sb a1,8(a4)
1046a: 00b703a3 sb a1,7(a4)
1046e: 00b70323 sb a1,6(a4)
10472: 00b702a3 sb a1,5(a4)
10476: 00b70223 sb a1,4(a4)
1047a: 00b701a3 sb a1,3(a4)
1047e: 00b70123 sb a1,2(a4)
10482: 00b700a3 sb a1,1(a4)
10486: 00b70023 sb a1,0(a4)
1048a: 8082 ret
1048c: 0ff5f593 andi a1,a1,255
10490: 00859693 slli a3,a1,0x8
10494: 8dd5 or a1,a1,a3
10496: 01059693 slli a3,a1,0x10
1049a: 8dd5 or a1,a1,a3
1049c: 02059693 slli a3,a1,0x20
104a0: 8dd5 or a1,a1,a3
104a2: b759 j 10428 <memset+0x10>
104a4: 00279693 slli a3,a5,0x2
104a8: 00000297 auipc t0,0x0
104ac: 9696 add a3,a3,t0
104ae: 8286 mv t0,ra
104b0: fa2680e7 jalr -94(a3)
104b4: 8096 mv ra,t0
104b6: 17c1 addi a5,a5,-16
104b8: 8f1d sub a4,a4,a5
104ba: 963e add a2,a2,a5
104bc: f8c871e3 bleu a2,a6,1043e <memset+0x26>
104c0: b79d j 10426 <memset+0xe>
00000000000104c2 <__register_exitproc>:
104c2: 67c5 lui a5,0x11
104c4: 7887b703 ld a4,1928(a5) # 11788 <_global_impure_ptr>
104c8: 832a mv t1,a0
104ca: 1f873783 ld a5,504(a4)
104ce: e789 bnez a5,104d8 <__register_exitproc+0x16>
104d0: 20070793 addi a5,a4,512
104d4: 1ef73c23 sd a5,504(a4)
104d8: 4798 lw a4,8(a5)
104da: 487d li a6,31
104dc: 557d li a0,-1
104de: 04e84463 blt a6,a4,10526 <__register_exitproc+0x64>
104e2: 02030a63 beqz t1,10516 <__register_exitproc+0x54>
104e6: 00371813 slli a6,a4,0x3
104ea: 983e add a6,a6,a5
104ec: 10c83823 sd a2,272(a6)
104f0: 3107a883 lw a7,784(a5)
104f4: 4605 li a2,1
104f6: 00e6163b sllw a2,a2,a4
104fa: 00c8e8b3 or a7,a7,a2
104fe: 3117a823 sw a7,784(a5)
10502: 20d83823 sd a3,528(a6)
10506: 4689 li a3,2
10508: 00d31763 bne t1,a3,10516 <__register_exitproc+0x54>
1050c: 3147a683 lw a3,788(a5)
10510: 8e55 or a2,a2,a3
10512: 30c7aa23 sw a2,788(a5)
10516: 0017069b addiw a3,a4,1
1051a: 0709 addi a4,a4,2
1051c: 070e slli a4,a4,0x3
1051e: c794 sw a3,8(a5)
10520: 97ba add a5,a5,a4
10522: e38c sd a1,0(a5)
10524: 4501 li a0,0
10526: 8082 ret
...
000000000001052a <__call_exitprocs>:
1052a: 715d addi sp,sp,-80
1052c: 67c5 lui a5,0x11
1052e: f44e sd s3,40(sp)
10530: 7887b983 ld s3,1928(a5) # 11788 <_global_impure_ptr>
10534: f052 sd s4,32(sp)
10536: ec56 sd s5,24(sp)
10538: e85a sd s6,16(sp)
1053a: e486 sd ra,72(sp)
1053c: e0a2 sd s0,64(sp)
1053e: fc26 sd s1,56(sp)
10540: f84a sd s2,48(sp)
10542: e45e sd s7,8(sp)
10544: 8aaa mv s5,a0
10546: 8a2e mv s4,a1
10548: 4b05 li s6,1
1054a: 1f89b403 ld s0,504(s3)
1054e: c801 beqz s0,1055e <__call_exitprocs+0x34>
10550: 4404 lw s1,8(s0)
10552: 34fd addiw s1,s1,-1
10554: 00349913 slli s2,s1,0x3
10558: 9922 add s2,s2,s0
1055a: 0004dd63 bgez s1,10574 <__call_exitprocs+0x4a>
1055e: 60a6 ld ra,72(sp)
10560: 6406 ld s0,64(sp)
10562: 74e2 ld s1,56(sp)
10564: 7942 ld s2,48(sp)
10566: 79a2 ld s3,40(sp)
10568: 7a02 ld s4,32(sp)
1056a: 6ae2 ld s5,24(sp)
1056c: 6b42 ld s6,16(sp)
1056e: 6ba2 ld s7,8(sp)
10570: 6161 addi sp,sp,80
10572: 8082 ret
10574: 000a0963 beqz s4,10586 <__call_exitprocs+0x5c>
10578: 21093783 ld a5,528(s2)
1057c: 01478563 beq a5,s4,10586 <__call_exitprocs+0x5c>
10580: 34fd addiw s1,s1,-1
10582: 1961 addi s2,s2,-8
10584: bfd9 j 1055a <__call_exitprocs+0x30>
10586: 441c lw a5,8(s0)
10588: 01093683 ld a3,16(s2)
1058c: 37fd addiw a5,a5,-1
1058e: 02979663 bne a5,s1,105ba <__call_exitprocs+0x90>
10592: c404 sw s1,8(s0)
10594: d6f5 beqz a3,10580 <__call_exitprocs+0x56>
10596: 31042703 lw a4,784(s0)
1059a: 009b163b sllw a2,s6,s1
1059e: 00842b83 lw s7,8(s0)
105a2: 8f71 and a4,a4,a2
105a4: 2701 sext.w a4,a4
105a6: ef09 bnez a4,105c0 <__call_exitprocs+0x96>
105a8: 9682 jalr a3
105aa: 4418 lw a4,8(s0)
105ac: 1f89b783 ld a5,504(s3)
105b0: f9771de3 bne a4,s7,1054a <__call_exitprocs+0x20>
105b4: fcf406e3 beq s0,a5,10580 <__call_exitprocs+0x56>
105b8: bf49 j 1054a <__call_exitprocs+0x20>
105ba: 00093823 sd zero,16(s2)
105be: bfd9 j 10594 <__call_exitprocs+0x6a>
105c0: 31442783 lw a5,788(s0)
105c4: 11093583 ld a1,272(s2)
105c8: 8ff1 and a5,a5,a2
105ca: 2781 sext.w a5,a5
105cc: e781 bnez a5,105d4 <__call_exitprocs+0xaa>
105ce: 8556 mv a0,s5
105d0: 9682 jalr a3
105d2: bfe1 j 105aa <__call_exitprocs+0x80>
105d4: 852e mv a0,a1
105d6: 9682 jalr a3
105d8: bfc9 j 105aa <__call_exitprocs+0x80>
...
00000000000105dc <conv_stat>:
105dc: 619c ld a5,0(a1)
105de: 00f51023 sh a5,0(a0)
105e2: 659c ld a5,8(a1)
105e4: 00f51123 sh a5,2(a0)
105e8: 499c lw a5,16(a1)
105ea: c15c sw a5,4(a0)
105ec: 49dc lw a5,20(a1)
105ee: 00f51423 sh a5,8(a0)
105f2: 4d9c lw a5,24(a1)
105f4: 00f51523 sh a5,10(a0)
105f8: 4ddc lw a5,28(a1)
105fa: 00f51623 sh a5,12(a0)
105fe: 719c ld a5,32(a1)
10600: 00f51723 sh a5,14(a0)
10604: 799c ld a5,48(a1)
10606: e91c sd a5,16(a0)
10608: 61bc ld a5,64(a1)
1060a: e93c sd a5,80(a0)
1060c: 5d9c lw a5,56(a1)
1060e: e53c sd a5,72(a0)
10610: 65bc ld a5,72(a1)
10612: ed1c sd a5,24(a0)
10614: 6dbc ld a5,88(a1)
10616: f51c sd a5,40(a0)
10618: 75bc ld a5,104(a1)
1061a: fd1c sd a5,56(a0)
1061c: 8082 ret
000000000001061e <__syscall_error>:
1061e: 1141 addi sp,sp,-16
10620: e022 sd s0,0(sp)
10622: e406 sd ra,8(sp)
10624: 842a mv s0,a0
10626: 00000097 auipc ra,0x0
1062a: 3ba080e7 jalr 954(ra) # 109e0 <__errno>
1062e: 408007bb negw a5,s0
10632: 60a2 ld ra,8(sp)
10634: 6402 ld s0,0(sp)
10636: c11c sw a5,0(a0)
10638: 557d li a0,-1
1063a: 0141 addi sp,sp,16
1063c: 8082 ret
000000000001063e <__internal_syscall>:
1063e: 88aa mv a7,a0
10640: 852e mv a0,a1
10642: 85b2 mv a1,a2
10644: 8636 mv a2,a3
10646: 86ba mv a3,a4
10648: 00000073 ecall
1064c: 00055663 bgez a0,10658 <__internal_syscall+0x1a>
10650: 00000317 auipc t1,0x0
10654: fce30067 jr -50(t1) # 1061e <__syscall_error>
10658: 8082 ret
000000000001065a <open>:
1065a: 1141 addi sp,sp,-16
1065c: 86b2 mv a3,a2
1065e: 4701 li a4,0
10660: 862e mv a2,a1
10662: 85aa mv a1,a0
10664: 40000513 li a0,1024
10668: e406 sd ra,8(sp)
1066a: 00000097 auipc ra,0x0
1066e: fd4080e7 jalr -44(ra) # 1063e <__internal_syscall>
10672: 60a2 ld ra,8(sp)
10674: 2501 sext.w a0,a0
10676: 0141 addi sp,sp,16
10678: 8082 ret
000000000001067a <openat>:
1067a: 1141 addi sp,sp,-16
1067c: 8736 mv a4,a3
1067e: 86b2 mv a3,a2
10680: 862e mv a2,a1
10682: 85aa mv a1,a0
10684: 03800513 li a0,56
10688: e406 sd ra,8(sp)
1068a: fb5ff0ef jal ra,1063e <__internal_syscall>
1068e: 60a2 ld ra,8(sp)
10690: 2501 sext.w a0,a0
10692: 0141 addi sp,sp,16
10694: 8082 ret
0000000000010696 <lseek>:
10696: 86b2 mv a3,a2
10698: 4701 li a4,0
1069a: 862e mv a2,a1
1069c: 85aa mv a1,a0
1069e: 03e00513 li a0,62
106a2: 00000317 auipc t1,0x0
106a6: f9c30067 jr -100(t1) # 1063e <__internal_syscall>
00000000000106aa <read>:
106aa: 86b2 mv a3,a2
106ac: 4701 li a4,0
106ae: 862e mv a2,a1
106b0: 85aa mv a1,a0
106b2: 03f00513 li a0,63
106b6: f89ff06f j 1063e <__internal_syscall>
00000000000106ba <write>:
106ba: 86b2 mv a3,a2
106bc: 4701 li a4,0
106be: 862e mv a2,a1
106c0: 85aa mv a1,a0
106c2: 04000513 li a0,64
106c6: 00000317 auipc t1,0x0
106ca: f7830067 jr -136(t1) # 1063e <__internal_syscall>
00000000000106ce <fstat>:
106ce: 7135 addi sp,sp,-160
106d0: e526 sd s1,136(sp)
106d2: 860a mv a2,sp
106d4: 84ae mv s1,a1
106d6: 4701 li a4,0
106d8: 85aa mv a1,a0
106da: 4681 li a3,0
106dc: 05000513 li a0,80
106e0: ed06 sd ra,152(sp)
106e2: e922 sd s0,144(sp)
106e4: f5bff0ef jal ra,1063e <__internal_syscall>
106e8: 842a mv s0,a0
106ea: 858a mv a1,sp
106ec: 8526 mv a0,s1
106ee: eefff0ef jal ra,105dc <conv_stat>
106f2: 0004051b sext.w a0,s0
106f6: 60ea ld ra,152(sp)
106f8: 644a ld s0,144(sp)
106fa: 64aa ld s1,136(sp)
106fc: 610d addi sp,sp,160
106fe: 8082 ret
0000000000010700 <stat>:
10700: 7135 addi sp,sp,-160
10702: e526 sd s1,136(sp)
10704: 860a mv a2,sp
10706: 84ae mv s1,a1
10708: 4701 li a4,0
1070a: 85aa mv a1,a0
1070c: 4681 li a3,0
1070e: 40e00513 li a0,1038
10712: ed06 sd ra,152(sp)
10714: e922 sd s0,144(sp)
10716: 00000097 auipc ra,0x0
1071a: f28080e7 jalr -216(ra) # 1063e <__internal_syscall>
1071e: 842a mv s0,a0
10720: 858a mv a1,sp
10722: 8526 mv a0,s1
10724: 00000097 auipc ra,0x0
10728: eb8080e7 jalr -328(ra) # 105dc <conv_stat>
1072c: 0004051b sext.w a0,s0
10730: 60ea ld ra,152(sp)
10732: 644a ld s0,144(sp)
10734: 64aa ld s1,136(sp)
10736: 610d addi sp,sp,160
10738: 8082 ret
000000000001073a <lstat>:
1073a: 7135 addi sp,sp,-160
1073c: e526 sd s1,136(sp)
1073e: 860a mv a2,sp
10740: 84ae mv s1,a1
10742: 4701 li a4,0
10744: 85aa mv a1,a0
10746: 4681 li a3,0
10748: 40f00513 li a0,1039
1074c: ed06 sd ra,152(sp)
1074e: e922 sd s0,144(sp)
10750: eefff0ef jal ra,1063e <__internal_syscall>
10754: 842a mv s0,a0
10756: 858a mv a1,sp
10758: 8526 mv a0,s1
1075a: e83ff0ef jal ra,105dc <conv_stat>
1075e: 0004051b sext.w a0,s0
10762: 60ea ld ra,152(sp)
10764: 644a ld s0,144(sp)
10766: 64aa ld s1,136(sp)
10768: 610d addi sp,sp,160
1076a: 8082 ret
000000000001076c <fstatat>:
1076c: 7135 addi sp,sp,-160
1076e: e526 sd s1,136(sp)
10770: 8736 mv a4,a3
10772: 84b2 mv s1,a2
10774: 868a mv a3,sp
10776: 862e mv a2,a1
10778: 85aa mv a1,a0
1077a: 04f00513 li a0,79
1077e: ed06 sd ra,152(sp)
10780: e922 sd s0,144(sp)
10782: 00000097 auipc ra,0x0
10786: ebc080e7 jalr -324(ra) # 1063e <__internal_syscall>
1078a: 842a mv s0,a0
1078c: 858a mv a1,sp
1078e: 8526 mv a0,s1
10790: 00000097 auipc ra,0x0
10794: e4c080e7 jalr -436(ra) # 105dc <conv_stat>
10798: 0004051b sext.w a0,s0
1079c: 60ea ld ra,152(sp)
1079e: 644a ld s0,144(sp)
107a0: 64aa ld s1,136(sp)
107a2: 610d addi sp,sp,160
107a4: 8082 ret
00000000000107a6 <access>:
107a6: 1141 addi sp,sp,-16
107a8: 862e mv a2,a1
107aa: 4701 li a4,0
107ac: 85aa mv a1,a0
107ae: 4681 li a3,0
107b0: 40900513 li a0,1033
107b4: e406 sd ra,8(sp)
107b6: e89ff0ef jal ra,1063e <__internal_syscall>
107ba: 60a2 ld ra,8(sp)
107bc: 2501 sext.w a0,a0
107be: 0141 addi sp,sp,16
107c0: 8082 ret
00000000000107c2 <faccessat>:
107c2: 1141 addi sp,sp,-16
107c4: 8736 mv a4,a3
107c6: 86b2 mv a3,a2
107c8: 862e mv a2,a1
107ca: 85aa mv a1,a0
107cc: 03000513 li a0,48
107d0: e406 sd ra,8(sp)
107d2: 00000097 auipc ra,0x0
107d6: e6c080e7 jalr -404(ra) # 1063e <__internal_syscall>
107da: 60a2 ld ra,8(sp)
107dc: 2501 sext.w a0,a0
107de: 0141 addi sp,sp,16
107e0: 8082 ret
00000000000107e2 <close>:
107e2: 1141 addi sp,sp,-16
107e4: 85aa mv a1,a0
107e6: 4701 li a4,0
107e8: 4681 li a3,0
107ea: 4601 li a2,0
107ec: 03900513 li a0,57
107f0: e406 sd ra,8(sp)
107f2: e4dff0ef jal ra,1063e <__internal_syscall>
107f6: 60a2 ld ra,8(sp)
107f8: 2501 sext.w a0,a0
107fa: 0141 addi sp,sp,16
107fc: 8082 ret
00000000000107fe <link>:
107fe: 1141 addi sp,sp,-16
10800: 862e mv a2,a1
10802: 4701 li a4,0
10804: 85aa mv a1,a0
10806: 4681 li a3,0
10808: 40100513 li a0,1025
1080c: e406 sd ra,8(sp)
1080e: 00000097 auipc ra,0x0
10812: e30080e7 jalr -464(ra) # 1063e <__internal_syscall>
10816: 60a2 ld ra,8(sp)
10818: 2501 sext.w a0,a0
1081a: 0141 addi sp,sp,16
1081c: 8082 ret
000000000001081e <unlink>:
1081e: 1141 addi sp,sp,-16
10820: 85aa mv a1,a0
10822: 4701 li a4,0
10824: 4681 li a3,0
10826: 4601 li a2,0
10828: 40200513 li a0,1026
1082c: e406 sd ra,8(sp)
1082e: e11ff0ef jal ra,1063e <__internal_syscall>
10832: 60a2 ld ra,8(sp)
10834: 2501 sext.w a0,a0
10836: 0141 addi sp,sp,16
10838: 8082 ret
000000000001083a <execve>:
1083a: 1141 addi sp,sp,-16
1083c: e406 sd ra,8(sp)
1083e: 00000097 auipc ra,0x0
10842: 1a2080e7 jalr 418(ra) # 109e0 <__errno>
10846: 60a2 ld ra,8(sp)
10848: 47b1 li a5,12
1084a: c11c sw a5,0(a0)
1084c: 557d li a0,-1
1084e: 0141 addi sp,sp,16
10850: 8082 ret
0000000000010852 <fork>:
10852: 1141 addi sp,sp,-16
10854: e406 sd ra,8(sp)
10856: 18a000ef jal ra,109e0 <__errno>
1085a: 60a2 ld ra,8(sp)
1085c: 47ad li a5,11
1085e: c11c sw a5,0(a0)
10860: 557d li a0,-1
10862: 0141 addi sp,sp,16
10864: 8082 ret
0000000000010866 <getpid>:
10866: 4505 li a0,1
10868: 8082 ret
000000000001086a <kill>:
1086a: 1141 addi sp,sp,-16
1086c: e406 sd ra,8(sp)
1086e: 172000ef jal ra,109e0 <__errno>
10872: 60a2 ld ra,8(sp)
10874: 47d9 li a5,22
10876: c11c sw a5,0(a0)
10878: 557d li a0,-1
1087a: 0141 addi sp,sp,16
1087c: 8082 ret
000000000001087e <wait>:
1087e: 1141 addi sp,sp,-16
10880: e406 sd ra,8(sp)
10882: 00000097 auipc ra,0x0
10886: 15e080e7 jalr 350(ra) # 109e0 <__errno>
1088a: 60a2 ld ra,8(sp)
1088c: 47a9 li a5,10
1088e: c11c sw a5,0(a0)
10890: 557d li a0,-1
10892: 0141 addi sp,sp,16
10894: 8082 ret
0000000000010896 <isatty>:
10896: 7119 addi sp,sp,-128
10898: 002c addi a1,sp,8
1089a: fc86 sd ra,120(sp)
1089c: e33ff0ef jal ra,106ce <fstat>
108a0: 57fd li a5,-1
108a2: 00f50663 beq a0,a5,108ae <isatty+0x18>
108a6: 4532 lw a0,12(sp)
108a8: 40d5551b sraiw a0,a0,0xd
108ac: 8905 andi a0,a0,1
108ae: 70e6 ld ra,120(sp)
108b0: 6109 addi sp,sp,128
108b2: 8082 ret
00000000000108b4 <gettimeofday>:
108b4: 1141 addi sp,sp,-16
108b6: 85aa mv a1,a0
108b8: 4701 li a4,0
108ba: 4681 li a3,0
108bc: 4601 li a2,0
108be: 0a900513 li a0,169
108c2: e406 sd ra,8(sp)
108c4: 00000097 auipc ra,0x0
108c8: d7a080e7 jalr -646(ra) # 1063e <__internal_syscall>
108cc: 60a2 ld ra,8(sp)
108ce: 2501 sext.w a0,a0
108d0: 0141 addi sp,sp,16
108d2: 8082 ret
00000000000108d4 <times>:
108d4: 7179 addi sp,sp,-48
108d6: f022 sd s0,32(sp)
108d8: 842a mv s0,a0
108da: 8581b783 ld a5,-1960(gp) # 117d8 <t0.2574>
108de: ec26 sd s1,24(sp)
108e0: f406 sd ra,40(sp)
108e2: 85818493 addi s1,gp,-1960 # 117d8 <t0.2574>
108e6: eb81 bnez a5,108f6 <times+0x22>
108e8: 4581 li a1,0
108ea: 85818513 addi a0,gp,-1960 # 117d8 <t0.2574>
108ee: 00000097 auipc ra,0x0
108f2: fc6080e7 jalr -58(ra) # 108b4 <gettimeofday>
108f6: 850a mv a0,sp
108f8: 4581 li a1,0
108fa: 00000097 auipc ra,0x0
108fe: fba080e7 jalr -70(ra) # 108b4 <gettimeofday>
10902: 6098 ld a4,0(s1)
10904: 6782 ld a5,0(sp)
10906: 6494 ld a3,8(s1)
10908: 00043823 sd zero,16(s0)
1090c: 8f99 sub a5,a5,a4
1090e: 000f4737 lui a4,0xf4
10912: 24070713 addi a4,a4,576 # f4240 <__global_pointer$+0xe22c0>
10916: 02e787b3 mul a5,a5,a4
1091a: 6722 ld a4,8(sp)
1091c: 00043c23 sd zero,24(s0)
10920: 00043423 sd zero,8(s0)
10924: 8f15 sub a4,a4,a3
10926: 70a2 ld ra,40(sp)
10928: 64e2 ld s1,24(sp)
1092a: 557d li a0,-1
1092c: 97ba add a5,a5,a4
1092e: e01c sd a5,0(s0)
10930: 7402 ld s0,32(sp)
10932: 6145 addi sp,sp,48
10934: 8082 ret
0000000000010936 <ftime>:
10936: 00051423 sh zero,8(a0)
1093a: 00053023 sd zero,0(a0)
1093e: 4501 li a0,0
10940: 8082 ret
0000000000010942 <utime>:
10942: 557d li a0,-1
10944: 8082 ret
0000000000010946 <chown>:
10946: 557d li a0,-1
10948: 8082 ret
000000000001094a <chmod>:
1094a: 557d li a0,-1
1094c: 8082 ret
000000000001094e <chdir>:
1094e: 557d li a0,-1
10950: 8082 ret
0000000000010952 <getcwd>:
10952: 4501 li a0,0
10954: 8082 ret
0000000000010956 <sysconf>:
10956: 4789 li a5,2
10958: 00f50463 beq a0,a5,10960 <sysconf+0xa>
1095c: 557d li a0,-1
1095e: 8082 ret
10960: 000f4537 lui a0,0xf4
10964: 24050513 addi a0,a0,576 # f4240 <__global_pointer$+0xe22c0>
10968: 8082 ret
000000000001096a <sbrk>:
1096a: 1101 addi sp,sp,-32
1096c: e822 sd s0,16(sp)
1096e: 8181b783 ld a5,-2024(gp) # 11798 <_edata>
10972: e426 sd s1,8(sp)
10974: ec06 sd ra,24(sp)
10976: 84aa mv s1,a0
10978: e785 bnez a5,109a0 <sbrk+0x36>
1097a: 4701 li a4,0
1097c: 4681 li a3,0
1097e: 4601 li a2,0
10980: 4581 li a1,0
10982: 0d600513 li a0,214
10986: cb9ff0ef jal ra,1063e <__internal_syscall>
1098a: 57fd li a5,-1
1098c: 00f51863 bne a0,a5,1099c <sbrk+0x32>
10990: 557d li a0,-1
10992: 60e2 ld ra,24(sp)
10994: 6442 ld s0,16(sp)
10996: 64a2 ld s1,8(sp)
10998: 6105 addi sp,sp,32
1099a: 8082 ret
1099c: 80a1bc23 sd a0,-2024(gp) # 11798 <_edata>
109a0: 8181b583 ld a1,-2024(gp) # 11798 <_edata>
109a4: 4701 li a4,0
109a6: 4681 li a3,0
109a8: 95a6 add a1,a1,s1
109aa: 4601 li a2,0
109ac: 0d600513 li a0,214
109b0: c8fff0ef jal ra,1063e <__internal_syscall>
109b4: 8181b783 ld a5,-2024(gp) # 11798 <_edata>
109b8: 94be add s1,s1,a5
109ba: fc951be3 bne a0,s1,10990 <sbrk+0x26>
109be: 80a1bc23 sd a0,-2024(gp) # 11798 <_edata>
109c2: 853e mv a0,a5
109c4: b7f9 j 10992 <sbrk+0x28>
00000000000109c6 <_exit>:
109c6: 1141 addi sp,sp,-16
109c8: 85aa mv a1,a0
109ca: 4701 li a4,0
109cc: 4681 li a3,0
109ce: 4601 li a2,0
109d0: 05d00513 li a0,93
109d4: e406 sd ra,8(sp)
109d6: 00000097 auipc ra,0x0
109da: c68080e7 jalr -920(ra) # 1063e <__internal_syscall>
109de: a001 j 109de <_exit+0x18>
00000000000109e0 <__errno>:
109e0: 8101b503 ld a0,-2032(gp) # 11790 <_impure_ptr>
109e4: 8082 ret
...