Linux objdump 如何发出英特尔语法
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10362630/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can objdump emit intel syntax
提问by pythonic
How can I tell objdump
to emit assembly in Intel Syntax rather than the default AT&T syntax?
如何判断objdump
以英特尔语法而不是默认的 AT&T 语法发出程序集?
采纳答案by Daniel Kamil Kozar
What you're looking for is -M intel
. Use it as follows.
你要找的是-M intel
. 使用方法如下。
objdump -M intel -d program_name
回答by shigoel
If you want Intel mnemonic codes as well (instead of AT&T mnemonic codes), you can use:
如果您还需要 Intel 助记符代码(而不是 AT&T 助记符代码),您可以使用:
objdump -M intel intel-mnemonic -D <program's-object-file>
objdump -M intel intel-mnemonic -D <program's-object-file>