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



Wiki > Main > ObjdumpGuide (compare)

Difference: ObjdumpGuide (r2 vs. r1)

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 -BE: -EB:

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

r4 - 03 Dec 2012 - 16:19:00 - MichaelGiacomelli

Revision r2 - 12 May 2008 - 10:24 - NilsWallmenius
Revision r1 - 11 May 2008 - 18:46 - DanielStenberg
Copyright by the contributing authors.