Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can objdump emit intel syntax

How can I tell objdump to emit assembly in Intel Syntax rather than the default AT&T syntax?

like image 968
pythonic Avatar asked Apr 28 '12 10:04

pythonic


2 Answers

What you're looking for is -M intel. Use it as follows.

objdump -M intel -d program_name
like image 96
Daniel Kamil Kozar Avatar answered Nov 17 '22 05:11

Daniel Kamil Kozar


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>

like image 12
shigoel Avatar answered Nov 17 '22 03:11

shigoel