The objdump utility displays information about one or more object files. The options control what particular information to display. The objfile arguments identify the object files to be examined. When you specify archives, objdump shows information on each of the member object files. 5 objdump Examples. Display file header using -f option. Output consisting of only the file header (ELF header) can be displayed using -f option with this command. Consider the following example: $ objdump -f assert assert: file format elf64-x86-64 architecture: i386:x86-64, flags 0x00000112: EXECP, HASSYMS, DPAGED start address. Objdump is a command-line program for displaying various information about object files on Unix-like operating systems. For instance, it can be used as a disassembler to view an executable in assembly form.
-->The Microsoft COFF Binary File Dumper (DUMPBIN.EXE) displays information about Common Object File Format (COFF) binary files. You can use DUMPBIN to examine COFF object files, standard libraries of COFF objects, executable files, and dynamic-link libraries (DLLs).
Note
You can start this tool only from the Visual Studio command prompt. You cannot start it from a system command prompt or from File Explorer.
Only the /HEADERS DUMPBIN option is available for use on files produced with the /GL compiler option.
See also
Operating system | Unix and Unix-like |
---|---|
Type | Command |
License | GNU GPL |
objdump is a command-line program for displaying various information about object files on Unix-likeoperating systems. For instance, it can be used as a disassembler to view an executable in assembly form. It is part of the GNU Binutils for fine-grained control over executables and other binary data. objdump uses the BFD library to read the contents of object files. Similar utilities are BorlandTDUMP, MicrosoftDUMPBIN and readelf.
Note that on certain platforms (e.g. macOS), the objdump binary may actually be a link to llvm's objdump, with different command-line options and behavior.
Example[edit]
For example,
This performs disassembly on the file «file.bin», with the assembly code shown in Intel syntax. We then redirect it to grep, which searches the main function and displays 20 lines of its code.
Example output:
See also[edit]
External links[edit]
objdump(1)
– Linux User Commands Manualreadelf(1)
– Linux User Commands Manual- Binutils::Objdump - Perl interface to objdump