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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 06:03:13  来源:igfitidea点击:

How can objdump emit intel syntax

linuxassemblyx86-64objdump

提问by pythonic

How can I tell objdumpto 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>