release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > Main > ObjdumpGuide (r3)

Guide to using objdump for disassembly

Guide

The necessary command line options for objdump always slip my mind so this is a page to make them get stored somewhere for later easy retrieval!

Options

A standard ARM dissassembly for a raw binary file:

arm-elf-objdump -D --target binary -marm [file name]

To get the disassembly to use thumb-mode for the ARM instructions, add -Mforce-thumb:

arm-elf-objdump -D --target binary -Mforce-thumb -marm [file name]

To make the disassembly to assume ARM in big-endian mode, add -EB:

arm-elf-objdump -D --target binary -EB -marm [file name]

Double Checking Your Code

Add -g to the code's makefile, then

arm-elf-objdump -d path/to/ofile/in/build/dir > file.S
Edit | Attach | Print version | History: r4 < r3 < r2 < r1 | Backlinks | View wiki text | More topic actions...
r3 - 15 Feb 2010 - 23:22:03 - MichaelGiacomelli
Copyright by the contributing authors.