LinuxCommandLibrary

objdump

TLDR

Disassemble executable

$ objdump -d [binary]
copy
Show all headers
$ objdump -x [binary]
copy
Show section contents
$ objdump -s [binary]
copy
Disassemble with source
$ objdump -S [binary]
copy
Show symbol table
$ objdump -t [binary]
copy
Show dynamic symbols
$ objdump -T [binary]
copy
Disassemble specific section
$ objdump -d -j [.text] [binary]
copy

SYNOPSIS

objdump [options] files...

DESCRIPTION

objdump displays information about object files. It can disassemble executables, show headers, symbol tables, and relocations. It's essential for binary analysis and debugging.
The tool works with ELF, PE, and other object file formats, providing insights into compiled binaries.

PARAMETERS

-d, --disassemble

Disassemble code sections.
-D
Disassemble all sections.
-S, --source
Mix source with disassembly.
-t, --syms
Symbol table.
-T, --dynamic-syms
Dynamic symbol table.
-x, --all-headers
All headers.
-h, --section-headers
Section headers.
-r, --reloc
Relocation entries.
-j section
Specific section only.
-M options
Disassembler options.
-C, --demangle
Demangle C++ symbols.

CAVEATS

Stripped binaries lack debug info. Large binaries produce verbose output. Disassembly may miss data in code sections.

HISTORY

objdump is part of GNU Binutils, started in the late 1980s. It provides a unified tool for examining various object file formats across different architectures.

SEE ALSO

readelf(1), nm(1), gdb(1), strings(1)

> TERMINAL_GEAR

Curated for the Linux community

Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50