objdump的和ARM VS拇指 [英] objdump and ARM vs Thumb

查看:182
本文介绍了objdump的和ARM VS拇指的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图拆卸内置于ARM与海湾合作委员会的对象。不幸的是,objdump的试图猜测code是ARM和Thumb和越来越错了。它认为我的code是拇指时,它实际上是ARM

I'm trying to disassemble an object built for ARM with gcc. Unfortunately, objdump is trying to guess whether the code is ARM and Thumb, and is getting it wrong: it thinks my code is Thumb when it's actually ARM.

我看到objdump的有一个选项,以迫使它跨preT的所有指令为Thumb( -Mforce拇指),但它并没有一个给力ARM模式!

I see that objdump has an option to force it to interpret all instructions as Thumb (-Mforce-thumb), but it doesn't have one to force ARM mode!

这似乎是一个很奇怪的疏漏给我,而且它严重地阻碍了我的能力来完成的工作(我是一个嵌入式设备上,我调试唯一方法是看拆卸)。我已经试过各种方法,包括试图告诉objdump的使用不支持的Thumb ARM架构,但似乎没有任何工作。任何想法?

This seems like a really weird omission to me, and it's seriously hampering my ability to get work done (I'm on an embedded device and my only means of debugging is to look at the disassembly). I've tried various approaches, including trying to tell objdump to use an ARM architecture that doesn't support Thumb, but nothing seems to work. Any ideas?

(是的,我知道,指令的真的是的ARM ...)

(And yes, I know that the instructions really are ARM...)

推荐答案

ARM-Linux的gnueabi-objdump的-marm -b二进制-D 的伎俩我。它没有preserve虽然符号信息,所以这是你正在寻找不太什么,但它给你的拆机,这是一个开始。

arm-linux-gnueabi-objdump -marm -b binary -D does the trick for me. It doesn't preserve the symbol information though, so it's not quite what you are looking for, but it gives you the disassemble, which is a start.

这篇关于objdump的和ARM VS拇指的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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