Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Search
| Go
Wiki
>
Main
>
ObjdumpGuide
---+!! Guide to using objdump for disassembly %TOC% ---++ 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: <pre>arm-elf-eabi-objdump -D --target binary -marm [file name] </pre> To get the disassembly to use thumb-mode for the ARM instructions, add -Mforce-thumb: <pre>arm-elf-eabi-objdump -D --target binary -Mforce-thumb -marm [file name] </pre> To make the disassembly to assume ARM in big-endian mode, add -EB: <pre>arm-elf-eabi-objdump -D --target binary -EB -marm [file name] </pre> ---++ Double Checking Your Code Add -g to the code's makefile, then <pre>arm-elf-eabi-objdump -d path/to/ofile/in/build/dir > file.S </pre>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
r4 - 03 Dec 2012 - 16:19:00 -
MichaelGiacomelli
Copyright © by the contributing authors.