objdump
developmentLinux/Unix
The objdump command is one of the most frequently used commands in Linux/Unix-like operating systems. objdump Display information from object files
Quick Reference
Command Name:
objdump
Category:
development
Platform:
Linux/Unix
Basic Usage:
objdump [options] [arguments]
Common Use Cases
Syntax
objdump [options] file...
Options
Option | Description |
---|---|
-a , --archive-headers |
Display archive header information |
-b bfdname , --target=bfdname |
Specify the binary file format |
-d , --disassemble |
Display assembler contents of executable sections |
-D , --disassemble-all |
Display assembler contents of all sections |
--disassemble=symbol |
Display assembler contents from symbol |
-f , --file-headers |
Display the contents of the overall file header |
-F , --file-offsets |
Include file offsets when displaying information |
-g , --debugging |
Display debug information |
-h , --section-headers , --headers |
Display the contents of the section headers |
-j name , --section=name |
Only display information for section name |
-l , --line-numbers |
Include line numbers and filenames in output |
-M options , --disassembler-options=options |
Pass text options to the disassembler (e.g., intel, att) |
-p , --private-headers |
Display format-specific file header contents |
-r , --reloc |
Display the relocation entries in the file |
-R , --dynamic-reloc |
Display the dynamic relocation entries in the file |
-s , --full-contents |
Display the full contents of all sections requested |
-S , --source |
Intermix source code with disassembly |
-t , --syms |
Display the contents of the symbol table(s) |
-T , --dynamic-syms |
Display the contents of the dynamic symbol table |
-x , --all-headers |
Display the contents of all headers |
-z , --disassemble-zeroes |
Do not skip blocks of zeroes when disassembling |
Examples
How to Use These Examples
The examples below show common ways to use the objdump
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
objdump -f executable