Advertisement
resyfer

Objdump Main.elf

Mar 30th, 2024 (edited)
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.84 KB | Source Code | 0 0
  1. $ arm-none-eabi-objdump main.elf -D
  2.  
  3. main.elf: file format elf32-littlearm
  4.  
  5.  
  6. Disassembly of section .isr_vector:
  7.  
  8. 08000000 <isr_vector>:
  9. 8000000: 20008000 andcs r8, r0, r0
  10. 8000004: 080001cf stmdaeq r0, {r0, r1, r2, r3, r6, r7, r8}
  11. 8000008: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  12. 800000c: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  13. 8000010: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  14. 8000014: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  15. ...
  16. 800002c: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  17. 8000030: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  18. 8000034: 00000000 andeq r0, r0, r0
  19. 8000038: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  20. 800003c: 080001c9 stmdaeq r0, {r0, r3, r6, r7, r8}
  21. ...
  22.  
  23. Disassembly of section .text:
  24.  
  25. 080001c8 <default_handler>:
  26. 80001c8: b480 push {r7}
  27. 80001ca: af00 add r7, sp, #0
  28. 80001cc: e7fe b.n 80001cc <default_handler+0x4>
  29.  
  30. 080001ce <reset_handler>:
  31. 80001ce: b580 push {r7, lr}
  32. 80001d0: b088 sub sp, #32
  33. 80001d2: af00 add r7, sp, #0
  34. 80001d4: 4a1a ldr r2, [pc, #104] @ (8000240 <reset_handler+0x72>)
  35. 80001d6: 4b1b ldr r3, [pc, #108] @ (8000244 <reset_handler+0x76>)
  36. 80001d8: 1ad3 subs r3, r2, r3
  37. 80001da: 617b str r3, [r7, #20]
  38. 80001dc: 4b1a ldr r3, [pc, #104] @ (8000248 <reset_handler+0x7a>)
  39. 80001de: 613b str r3, [r7, #16]
  40. 80001e0: 4b18 ldr r3, [pc, #96] @ (8000244 <reset_handler+0x76>)
  41. 80001e2: 60fb str r3, [r7, #12]
  42. 80001e4: 2300 movs r3, #0
  43. 80001e6: 61fb str r3, [r7, #28]
  44. 80001e8: e00a b.n 8000200 <reset_handler+0x32>
  45. 80001ea: 693a ldr r2, [r7, #16]
  46. 80001ec: 69fb ldr r3, [r7, #28]
  47. 80001ee: 441a add r2, r3
  48. 80001f0: 68f9 ldr r1, [r7, #12]
  49. 80001f2: 69fb ldr r3, [r7, #28]
  50. 80001f4: 440b add r3, r1
  51. 80001f6: 7812 ldrb r2, [r2, #0]
  52. 80001f8: 701a strb r2, [r3, #0]
  53. 80001fa: 69fb ldr r3, [r7, #28]
  54. 80001fc: 3301 adds r3, #1
  55. 80001fe: 61fb str r3, [r7, #28]
  56. 8000200: 69fa ldr r2, [r7, #28]
  57. 8000202: 697b ldr r3, [r7, #20]
  58. 8000204: 429a cmp r2, r3
  59. 8000206: d3f0 bcc.n 80001ea <reset_handler+0x1c>
  60. 8000208: 4a10 ldr r2, [pc, #64] @ (800024c <reset_handler+0x7e>)
  61. 800020a: 4b11 ldr r3, [pc, #68] @ (8000250 <reset_handler+0x82>)
  62. 800020c: 1ad3 subs r3, r2, r3
  63. 800020e: 60bb str r3, [r7, #8]
  64. 8000210: 4b0f ldr r3, [pc, #60] @ (8000250 <reset_handler+0x82>)
  65. 8000212: 607b str r3, [r7, #4]
  66. 8000214: 2300 movs r3, #0
  67. 8000216: 61bb str r3, [r7, #24]
  68. 8000218: e007 b.n 800022a <reset_handler+0x5c>
  69. 800021a: 687a ldr r2, [r7, #4]
  70. 800021c: 69bb ldr r3, [r7, #24]
  71. 800021e: 4413 add r3, r2
  72. 8000220: 2200 movs r2, #0
  73. 8000222: 701a strb r2, [r3, #0]
  74. 8000224: 69bb ldr r3, [r7, #24]
  75. 8000226: 3301 adds r3, #1
  76. 8000228: 61bb str r3, [r7, #24]
  77. 800022a: 69ba ldr r2, [r7, #24]
  78. 800022c: 68bb ldr r3, [r7, #8]
  79. 800022e: 429a cmp r2, r3
  80. 8000230: d3f3 bcc.n 800021a <reset_handler+0x4c>
  81. 8000232: f000 f80f bl 8000254 <main>
  82. 8000236: bf00 nop
  83. 8000238: 3720 adds r7, #32
  84. 800023a: 46bd mov sp, r7
  85. 800023c: bd80 pop {r7, pc}
  86. 800023e: bf00 nop
  87. 8000240: 20000000 andcs r0, r0, r0
  88. 8000244: 20000000 andcs r0, r0, r0
  89. 8000248: 080002b0 stmdaeq r0, {r4, r5, r7, r9}
  90. 800024c: 20000000 andcs r0, r0, r0
  91. 8000250: 20000000 andcs r0, r0, r0
  92.  
  93. 08000254 <main>:
  94. 8000254: b480 push {r7}
  95. 8000256: b083 sub sp, #12
  96. 8000258: af00 add r7, sp, #0
  97. 800025a: 4b11 ldr r3, [pc, #68] @ (80002a0 <main+0x4c>)
  98. 800025c: 681b ldr r3, [r3, #0]
  99. 800025e: 4a10 ldr r2, [pc, #64] @ (80002a0 <main+0x4c>)
  100. 8000260: f043 0301 orr.w r3, r3, #1
  101. 8000264: 6013 str r3, [r2, #0]
  102. 8000266: 4b0e ldr r3, [pc, #56] @ (80002a0 <main+0x4c>)
  103. 8000268: 681b ldr r3, [r3, #0]
  104. 800026a: 603b str r3, [r7, #0]
  105. 800026c: 4b0c ldr r3, [pc, #48] @ (80002a0 <main+0x4c>)
  106. 800026e: 681b ldr r3, [r3, #0]
  107. 8000270: 603b str r3, [r7, #0]
  108. 8000272: 4b0c ldr r3, [pc, #48] @ (80002a4 <main+0x50>)
  109. 8000274: 681b ldr r3, [r3, #0]
  110. 8000276: 4a0b ldr r2, [pc, #44] @ (80002a4 <main+0x50>)
  111. 8000278: f443 6380 orr.w r3, r3, #1024 @ 0x400
  112. 800027c: 6013 str r3, [r2, #0]
  113. 800027e: 4b0a ldr r3, [pc, #40] @ (80002a8 <main+0x54>)
  114. 8000280: 681b ldr r3, [r3, #0]
  115. 8000282: 4a09 ldr r2, [pc, #36] @ (80002a8 <main+0x54>)
  116. 8000284: f483 5300 eor.w r3, r3, #8192 @ 0x2000
  117. 8000288: 6013 str r3, [r2, #0]
  118. 800028a: 2300 movs r3, #0
  119. 800028c: 607b str r3, [r7, #4]
  120. 800028e: e002 b.n 8000296 <main+0x42>
  121. 8000290: 687b ldr r3, [r7, #4]
  122. 8000292: 3301 adds r3, #1
  123. 8000294: 607b str r3, [r7, #4]
  124. 8000296: 687b ldr r3, [r7, #4]
  125. 8000298: 4a04 ldr r2, [pc, #16] @ (80002ac <main+0x58>)
  126. 800029a: 4293 cmp r3, r2
  127. 800029c: d9f8 bls.n 8000290 <main+0x3c>
  128. 800029e: e7ee b.n 800027e <main+0x2a>
  129. 80002a0: 40023830 andmi r3, r2, r0, lsr r8
  130. 80002a4: 40020800 andmi r0, r2, r0, lsl #16
  131. 80002a8: 40020014 andmi r0, r2, r4, lsl r0
  132. 80002ac: 000f423f andeq r4, pc, pc, lsr r2 @ <UNPREDICTABLE>
  133.  
  134. Disassembly of section .comment:
  135.  
  136. 00000000 <.comment>:
  137. 0: 3a434347 bcc 10d0d24 <isr_vector-0x6f2f2dc>
  138. 4: 72412820 subvc r2, r1, #32, 16 @ 0x200000
  139. 8: 4e47206d cdpmi 0, 4, cr2, cr7, cr13, {3}
  140. c: 6f542055 svcvs 0x00542055
  141. 10: 68636c6f stmdavs r3!, {r0, r1, r2, r3, r5, r6, sl, fp, sp, lr}^
  142. 14: 206e6961 rsbcs r6, lr, r1, ror #18
  143. 18: 322e3331 eorcc r3, lr, #-1006632960 @ 0xc4000000
  144. 1c: 6c65722e sfmvs f7, 2, [r5], #-184 @ 0xffffff48
  145. 20: 42282031 eormi r2, r8, #49 @ 0x31
  146. 24: 646c6975 strbtvs r6, [ip], #-2421 @ 0xfffff68b
  147. 28: 6d726120 ldfvse f6, [r2, #-128]! @ 0xffffff80
  148. 2c: 2e33312d rsfcssp f3, f3, #5.0
  149. 30: 20292937 eorcs r2, r9, r7, lsr r9
  150. 34: 322e3331 eorcc r3, lr, #-1006632960 @ 0xc4000000
  151. 38: 3220312e eorcc r3, r0, #-2147483637 @ 0x8000000b
  152. 3c: 31333230 teqcc r3, r0, lsr r2
  153. 40: 00393030 eorseq r3, r9, r0, lsr r0
  154.  
  155. Disassembly of section .ARM.attributes:
  156.  
  157. 00000000 <.ARM.attributes>:
  158. 0: 00002d41 andeq r2, r0, r1, asr #26
  159. 4: 61656100 cmnvs r5, r0, lsl #2
  160. 8: 01006962 tsteq r0, r2, ror #18
  161. c: 00000023 andeq r0, r0, r3, lsr #32
  162. 10: 2d453705 stclcs 7, cr3, [r5, #-20] @ 0xffffffec
  163. 14: 0d06004d stceq 0, cr0, [r6, #-308] @ 0xfffffecc
  164. 18: 02094d07 andeq r4, r9, #448 @ 0x1c0
  165. 1c: 01140412 tsteq r4, r2, lsl r4
  166. 20: 03170115 tsteq r7, #1073741829 @ 0x40000005
  167. 24: 01190118 tsteq r9, r8, lsl r1
  168. 28: 061e011a @ <UNDEFINED> instruction: 0x061e011a
  169. 2c: Address 0x2c is out of bounds.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement