问题描述
我想使用命令 arm-none-eabi-objdump -d -S -marm my_elf_file.elf
反汇编 armv7m 可执行文件..我得到了这个输出
file format elf32-littlearm
disassembly of section .init:
00008000 <_init>:
8000: b5f8 push {r3,r4,r5,r6,r7,lr}
8002: bf00 nop
8004: bcf8 pop {r3,r7}
8006: bc08 pop {r3}
8008: 469e mov lr,r3
800a: 4770 bx lr
disassembly of section .text:
0000800c <_GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv>:
800c: b538 push {r3,lr}
800e: f44f 651e mov.w r5,#2528 ; 0x9e0
8012: 4c07 ldr r4,[pc,#28] ; (8030 <_GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv+0x24>)
8014: 4628 mov r0,r5
8016: 60e5 str r5,[r4,#12]
8018: f005 fbe6 bl d7e8 <malloc>
801c: 60a0 str r0,#8]
801e: b120 cbz r0,802a <_GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv+0x1e>
8020: 2300 movs r3,#0
8022: 6060 str r0,#4]
8024: 6005 str r5,[r0,#0]
8026: 6043 str r3,#4]
8028: bd38 pop {r3,pc}
802a: 60e0 str r0,#12]
802c: 6060 str r0,#4]
802e: bd38 pop {r3,pc}
8030: 000228b4 .word 0x000228b4
如何确保生成的反汇编是针对 armv7m 而不是针对其他 arm 架构的?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)