Wiki > Main > ObjdumpGuide (compare)
Difference: ObjdumpGuide (r3 vs. r2)
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!
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]
Add -g to the code's makefile, then
arm-elf-objdump -d path/to/ofile/in/build/dir > file.S
r4 - 03 Dec 2012 - 16:19:00 - MichaelGiacomelliRevision r3 - 15 Feb 2010 - 23:22 - MichaelGiacomelli
Revision r2 - 12 May 2008 - 10:24 - NilsWallmenius
Copyright © by the contributing authors.