Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
Display information about one or more object files. If an archive is specified, objdump displays information on each object file in the archive. At least one of the options -a, -d, -D, -f, -g, -G, -h, -H, -p, -r, -S, -t, -T, -V, or -x must be given to tell objdump what information to show.
Options
-a, --archive-header
If any input files are archives, display the archive header information. The output includes the object file format of each archive member.
--adjust-vma=offset
Add offset to all section headers before dumping information. Useful if the section addresses do not correspond to the symbol table.
-bbfdname, --target=bfdname
Set the binary file format using its binary file descriptor name, bfdname. Use the -h option for a list of supported formats for your system.
-C [style] , --demangle[=style]
Decode (demangle) low-level symbol names into user-level names, optionally specifying a mangling style. Removes any initial underscores and makes C++ function names readable.
-d, --disassemble
Display assembler mnemonic names for the machine instructions. Disassemble only sections that are expected to contain instructions.
-D, --disassemble-all
Disassemble all sections, not just those expected to contain instructions.
-EB, --endian=big
-EL, --endian=little
Specify whether the object files are big- or little-endian, for disassembling. Useful for disassembling formats such as S-records (printable ASCII versions of object files) that do not include that information.
-f, --file-header
Display overall header summary information.
--file-start-context
When using -S and displaying source code from a file that hasn't been displayed yet, include context from the start of the file.
-g, --debugging
Display debugging information.
-G, --stabs
Display any stabs (debugging symbol table entries) information, in addition to the contents of any sections requested.
-h, --section-header, --header
Display section-header summary information.
-H, --help
Display help information and exit.
-i, --info
Display the architectures and object formats available on your system for use with -b or -m.
-jname, --section=name
Display information for section name.
-l, --line-numbers
Label the display with filename and source code line numbers corresponding to the object code or relocation entries shown. Use with -d, -D, or -r.
-march, --architecture=arch
Specify the architecture for disassembling object files. Useful when disassembling files such as S-records that do not include this information.
-Moptions, --disassembler-options=options
Pass target-specific information to the disassembler. Supported only on some targets.
--no-show-raw-insn
Do not show instructions in hexadecimal when disassembling. This is the default with --prefix-addresses.
-p, --private-headers
Display information specific to the object format. For some formats, no additional information is displayed.
--prefix-addresses
When disassembling, print the complete address on each line.
-r, --reloc
Display relocation entries. With -b or -D, the entries are intermixed with the disassembly.
-R, --dynamic-reloc
Print dynamic relocation entries. Meaningful only for dynamic objects such as certain types of shared libraries.
-s, --full-contents
Display the full contents of any requested sections.
-S, --source
Display source code intermixed with disassembly, if possible. Implies -d.
--show-raw-insn
When disassembling, show instructions in hexadecimal as well as symbolic form. This is the default, except with --prefix-addresses.
--start-address=addr
Start displaying data at the specified address. Applies to -d, -r, and -s.
--stop-address=addr
Stop displaying data at the specified address. Applies to -d, -r, and -s.
-t, --syms
Print symbol table entries.
-T, --dynamic-syms
Print dynamic symbol table entries. Meaningful only for dynamic objects such as certain types of shared libraries.
-V, --version
Print version information and exit.
-w, --wide
Format lines for output devices wider than 80 characters, and do not truncate symbol table names.
-x, --all-headers
Display all available header information. Equivalent to specifying -a -f -h -r-t.
-z, --disassemble-zeroes
Disassemble blocks of zeroes. The default is to skip such blocks.