可以读取目标文件吗? [英] It is possible to read an object file?
问题描述
我对.obj
文件感到好奇:我几乎不知道它们是什么(或它们包含什么),所以我用Vim文本编辑器打开了它们,发现里面是一种外星人般的语言...
I was curious about .obj
files: I pretty much don't know what they are (or what they contain), so I opened them with Vim text editor and what I found inside was an Alien like language...
有什么办法可以理解它们代表什么以及它们的内容是什么 另外,它们被用作什么?
Is there any way to understand what they represent and what is their content Also, for what are they being used ?
谢谢.
推荐答案
好的.
但是每个不同的平台都有不同的对象格式.在Windows上,您可以使用 dumpbin 之类的工具(dumpbin是Visual附带的)工作室).在Linux上,您可以使用"dumpobj"或反汇编程序.
But every different platform has a different object format. On Windows, you could use a tool like dumpbin (dumpbin comes with Visual Studio). On Linux, you could use "dumpobj", or disassemble the program.
这是Linux的一个很好的链接:
Here's a good link for Linux:
http://www.linuxjournal.com/article/1060
PS: objdump还允许您反汇编对象.就像您以前能够在DOS PC上进行调试"一样.
PS: objdump also lets you disassemble the object. Like you used to be able to do with "debug" on DOS PCs...
这篇关于可以读取目标文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!