objdump的使用为ARM架构:拆卸到ARM [英] Using objdump for ARM architecture: Disassembling to ARM

查看:198
本文介绍了objdump的使用为ARM架构:拆卸到ARM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目标文件,我试图拆卸。当我使用:

I have an object file and am trying to disassemble it. When I use:

objdump -d example.o

我得到了code装配在文件格式 ELF64-X86-64

我试图拆解成ARM这一点,我怎么会去这样做?

I am trying to disassemble this into ARM, how do I go about doing this?

推荐答案

如果你想要做ARM code的拆机,你最好有一个ARM工具链,这是我得到了什么:

If you want to do disassemble of ARM code, you'd better have an ARM tool chain, this is what I got:

http://bb.osmocom.org/trac/wiki/tool​​chain

您在此之后,可以使用手臂精灵-objdump的,而不是objdump的。
我用的命令是

After you have this, you can use arm-elf-objdump instead of objdump. The command I used is

arm-elf-objdump -D -b binary -marm binaryfile.dat

如果你看看手册页,你会发现-b后面的文件类型。对不起,我不知道如何告诉-b要分析一个.o文件。 -marm会告诉CPU是ARM。

If you look the manpage, you will find "-b" is followed by the file type. Sorry I don't know how to tell -b you want to analyze a .o file. "-marm" will tell the cpu is ARM.

希望这可以帮助你。

这篇关于objdump的使用为ARM架构:拆卸到ARM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆