Useful objdump args

I can never recall, or easily find the “best” set of args to use with objdump to disassemble a file usefully, so this serves as a reminder

objdump -M intel -Dslxwg /bin/foo

“-M intel” gives a sane disassembly instead of AT&T mnemonics, which should be the default really.
“-Dslxwg” gives, disassemble-all, full contents, with line numbers and all headers, wide format and includes debuginfo if available

Author: roelf on May 8, 2012
Category: Uncategorized

Leave a Reply


Last articles