llvm-objdump - LLVM’s object file dumper


llvm-objdump [commands] [options] [filenames…]


The llvm-objdump utility prints the contents of object files and final linked images named on the command line. If no file name is specified, llvm-objdump will attempt to read from a.out. If - is used as a file name, llvm-objdump will process a file on its standard input stream.


At least one of the following commands are required, and some commands can be combined with other commands:


Display assembler mnemonics for the machine instructions


Display usage information and exit. Does not stack with other commands.


Display the relocation entries in the file.


Display the content of each section.


Display summaries of the headers for each section.


Display the symbol table.


Display the version of this program. Does not stack with other commands.


llvm-objdump supports the following options:


Specify the architecture to disassemble. see -version for available architectures.


Create a CFG for every symbol in the object file and write it to a graphviz file (Mach-O-only).


Use .dSYM file for debug info.


Print line information from debug info if available.


Use Mach-O specific object file parser.


Target specific attributes.


Disable relaxation of arithmetic instruction for X86.


Enable statistics output from program.


Target triple to disassemble for, see -version for available targets.


When used with the -disassemble option, choose style of code to emit from X86 backend. Supported values are:


AT&T-style assembly


Intel-style assembly

The default disassembly style is att.


To report bugs, please visit <http://llvm.org/bugs/>.