Skip to content

What is objdump Linux command?

The objdump command in Linux is used for analyzing object files and binaries. It provides information about the executable files, sections, symbols, and disassembled machine code. This tool is helpful for debugging, understanding file structure, and reverse engineering.

Terminal window
objdump [options] <file>
OptionDescription
-a, —archiveDisplay the archive headers
-d, —disassembleDisplay assembler contents of executable sections
-h, —section-headersDisplay the section headers
-x, —all-headersDisplay all headers
-t, —symsDisplay the symbol table
-T, —dynamic-symsDisplay the dynamic symbol table
-r, —relocsDisplay the relocations in the file
-R, —dynamic-relocsDisplay dynamic relocations
ParameterDescription
fileThe executable file to be analyzed
Terminal window
objdump -f executable_file

This command displays the file header information of the specified executable file.

Terminal window
objdump -h executable_file

Displays the section headers of the specified executable file.

Terminal window
objdump -d executable_file

Disassembles all sections in the specified executable file.

Terminal window
objdump -t executable_file

Displays the symbol table of the specified executable file.

Terminal window
objdump -d --section=.text executable_file

Disassembles a specific section (in this case, .text) of the specified executable file.

To use the objdump command in bash, execute the following command:

Terminal window
objdump -d executable_file

The objdump command is used for displaying information about object files, libraries, and executables.

How can I display the headers of a binary file using objdump?

Section titled “How can I display the headers of a binary file using objdump?”

To display the headers of a binary file using objdump, run the following command:

Terminal window
objdump -h executable_file

How can I disassemble all sections of a binary file using objdump?

Section titled “How can I disassemble all sections of a binary file using objdump?”

You can disassemble all sections of a binary file using objdump by executing the following command:

Terminal window
objdump -d executable_file

How do I list the symbols in a binary file with objdump?

Section titled “How do I list the symbols in a binary file with objdump?”

To list the symbols in a binary file using objdump, use the following command:

Terminal window
objdump -t executable_file

How to generate raw symbol table with line numbers using objdump?

Section titled “How to generate raw symbol table with line numbers using objdump?”

To generate a raw symbol table with line numbers using objdump, run the command below:

Terminal window
objdump -t -S executable_file

How can I view the dynamic symbol table of a binary file with objdump?

Section titled “How can I view the dynamic symbol table of a binary file with objdump?”

To view the dynamic symbol table of a binary file using objdump, execute the following command:

Terminal window
objdump -T executable_file

How can I disassemble a particular section of a binary file with objdump?

Section titled “How can I disassemble a particular section of a binary file with objdump?”

You can disassemble a specific section of a binary file using objdump by running the command below:

Terminal window
objdump -d --section=.text executable_file
  • Disassembling executable files
  • Analyzing object files
  • Extracting information about sections in a binary
  • Examining symbol tables
  • Inspecting dynamic libraries
  • Identifying architecture information
  • Generating architecture specific information