Linux Mach-O反汇编程序 [英] Linux Mach-O Disassembler

查看:145
本文介绍了Linux Mach-O反汇编程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何Linux程序可以反汇编OSX通用x86/x86_64胖Mach-O二进制文件(如objdump)? GNU binutils的objdump支持ELF和Windows PE文件,但不支持Mach-O.

Are there any Linux programs that can disassemble an OSX universal x86/x86_64 fat Mach-O binary like objdump? GNU binutils' objdump supports ELF and Windows PE files but not Mach-O.

推荐答案

AFAIK,本机达尔文二进制工具是 cctools 软件包.它们没有与 GNU binutils 相同的命令行语法或输出.但是后来的binutils(即2.22)支持Mach-O格式.您可以预先构建这些工具,并在工具名称前加上"g"前缀,如

AFAIK, the native Darwin binary tools are part of the cctools package. They don't have the same command line syntax or output as the GNU binutils. Later binutils (i.e., 2.22) supports the Mach-O format however. You can get these prebuilt, with the 'g' prefix to the tool names, as mentioned here. Alternatively, you can compile binutils, with something like:

> ./configure --prefix=$CROSSTOOLDIR --target=x86_64-apple-darwin \
--enable-64-bit-bfd --disable-nls --disable-werror

安装将产生一个bin/目录,其中的实用程序以x86_64-apple-darwin为前缀.它应该可以很好地处理i386 Mach-O格式(和FAT二进制文件).

Installation will yield a bin/ directory where the utilities are prefixed with x86_64-apple-darwin. It should handle i386 Mach-O format (and FAT binaries) fine.

这篇关于Linux Mach-O反汇编程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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