llvm-objdump - LLVM’s object file dumper#
SYNOPSIS#
llvm-objdump [commands] [options] [filenames…]
DESCRIPTION#
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.
COMMANDS#
At least one of the following commands are required, and some commands can be combined with other commands:
- -a, --archive-headers#
Display the information contained within an archive’s headers.
- -d, --disassemble#
Disassemble all executable sections found in the input files. On some architectures (AArch64, PowerPC, x86), all known instructions are disassembled by default. On the others,
--mcpuor--mattris needed to enable some instruction sets. Disabled instructions are displayed as<unknown>.
- -D, --disassemble-all#
Disassemble all sections found in the input files.
- --disassemble-symbols=<symbol1[,symbol2,...]>#
Disassemble only the specified symbols. Takes demangled symbol names when
--demangleis specified, otherwise takes mangled symbol names. Implies--disassemble.Each argument is split on commas. To select a symbol whose name contains commas, use
--disassemblewith a symbol argument instead.
- --disassemble=<symbol>#
Disassemble only the specified symbol. Takes a demangled symbol name when
--demangleis specified, otherwise takes a mangled symbol name. Implies--disassemble.The argument is a single symbol name. To select multiple symbols, specify this option multiple times or use
--disassemble-symbols.
- --dwarf=<value>#
Dump the specified DWARF debug sections. The supported values are:
frames- .debug_frame
- -f, --file-headers#
Display the contents of the overall file header.
- --fault-map-section#
Display the content of the fault map section.
- -h, --headers