问题
How can I tell objdump
to emit assembly in Intel Syntax rather than the default AT&T syntax?
回答1:
What you're looking for is -M intel
. Use it as follows.
objdump -M intel -d program_name
回答2:
If you want Intel mnemonic codes as well (instead of AT&T mnemonic codes), you can use:
objdump -M intel intel-mnemonic -D <program's-object-file>
来源:https://stackoverflow.com/questions/10362630/how-can-objdump-emit-intel-syntax