LLVM-OBJDUMP(1) LLVM LLVM-OBJDUMP(1)

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 the information contained within an archive's headers.

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, --mcpu or --mattr is needed to enable some instruction sets. Disabled instructions are displayed as <unknown>.

Disassemble all sections found in the input files.

Disassemble only the specified symbols. Takes demangled symbol names when --demangle is specified, otherwise takes mangled symbol names. Implies --disassemble.

Dump the specified DWARF debug sections. The supported values are:

frames - .debug_frame


Display the contents of the overall file header.

Display the content of the fault map section.

Display summaries of the headers for each section.

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

Display format-specific file headers.

Display the relocation entries in the file.

Display the dynamic relocation entries in the file.

Dump the raw binary contents of the clang AST section.

Display the contents of each section.

Display the symbol table.

Display the contents of the dynamic symbol table.

Display the unwind info of the input(s).

This operation is only currently supported for COFF and Mach-O object files.


Display the version of the llvm-objdump executable. Does not stack with other commands.

Display all available header information. Equivalent to specifying --archive-headers, --file-headers, --private-headers, --reloc, --section-headers, and --syms.

llvm-objdump supports the following options:

Increase the displayed address in disassembly or section header printing by the specified offset.

Specify the target architecture when disassembling. Use --version for a list of available targets.

Look up the object using the given build ID, specified as a hexadecimal string. The found object is handled as if it were an input filename.

Demangle symbol names in the output.

Provide a path to a directory with a .build-id subdirectory to search for debug information for stripped binaries. Multiple instances of this argument are searched in the order given.

Whether or not to try debuginfod lookups for debug binaries. Unless specified, debuginfod is only enabled if libcurl was compiled in (LLVM_ENABLE_CURL) and at least one server URL was provided by the environment variable DEBUGINFOD_URLS.

Print the locations (in registers or memory) of source-level variables alongside disassembly. format may be unicode or ascii, defaulting to unicode if omitted.

Distance to indent the source-level variable display, relative to the start of the disassembly. Defaults to 52 characters.

Perform commands on the specified sections only. For Mach-O use segment,section to specify the section name.

When disassembling, display source line numbers. Implies --disassemble.

Pass target-specific disassembler options. Available options:
  • reg-names-std: ARM only (default). Print in ARM 's instruction set documentation, with r13/r14/r15 replaced by sp/lr/pc.
  • reg-names-raw: ARM only. Use r followed by the register number.
  • no-aliases: AArch64 and RISC-V only. Print raw instruction mnemonic instead of pseudo instruction mnemonic.
  • numeric: RISC-V only. Print raw register names instead of ABI mnemonic. (e.g. print x1 instead of ra)
  • att: x86 only (default). Print in the AT&T syntax.
  • intel: x86 only. Print in the intel syntax.


Target a specific CPU type for disassembly. Specify --mcpu=help to display available CPUs.

Enable/disable target-specific attributes. Specify --mattr=help to display the available attributes.

When disassembling, do not print leading addresses for instructions or inline relocations.

Do not use hex format for immediate values in disassembly output.

When disassembling, do not print the raw bytes of each instruction.

Display the content of the LLVM offloading section.

When disassembling with the --source option, prepend prefix to absolute paths.

When disassembling with the --source option, strip out level initial directories from absolute paths. This option has no effect without --prefix.

Use hex format when printing immediate values in disassembly output (default).

When disassembling, display source interleaved with the disassembly. Implies --disassemble.

Show all symbols during disassembly, even if multiple symbols are defined at the same location.

Display the LMA column when dumping ELF section headers. Defaults to off unless any section has different VMA and LMAs.

When disassembling, only disassemble from the specified address.

When printing relocations, only print the relocations patching offsets from at least address.

When printing symbols, only print symbols with a value of at least address.


When disassembling, only disassemble up to, but not including the specified address.

When printing relocations, only print the relocations patching offsets up to address.

When printing symbols, only print symbols with a value up to address.


When disassembling, symbolize a branch target operand to print a label instead of a real address.

When printing a PC-relative global symbol reference, print it as an offset from the leading symbol.

When a bb-address-map section is present (i.e., the object file is built with -fbasic-block-sections=labels), labels are retrieved from that section instead.

Only works with PowerPC objects or X86 linked images.

A non-symbolized branch instruction with a local target and pc-relative memory access like

cmp eax, dword ptr [rip + 4112]
jge 0x20117e <_start+0x25>


might become

<L0>:

cmp eax, dword ptr <g>
jge <L0>



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

Ignored for compatibility with GNU objdump.

Deprecated. When used with --disassemble, 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.


Do not skip blocks of zeroes when disassembling.

@<FILE>
Read command-line options and commands from response file <FILE>.

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

Print the offset to each archive member for Mach-O archives (requires --archive-headers).

Display binding info

Display the data in code table.

Disassemble just the specified symbol's instructions.

Print chained fixup information.

Print bind and rebase information used by dyld to resolve external references in a final linked binary.

Display the shared libraries used for linked files.

Use .dSYM file for debug info.

Display the shared library's ID for dylib files.

Display exported symbols.

Print the function starts table for Mach-O objects. Either addrs (default) to print only the addresses of functions, names to print only the names of the functions (when available), or both to print the names beside the addresses.

Print line information from debug info if available.

Print the full leading address when disassembling.

Display the indirect symbol table.

Display the info plist section as strings.

Display lazy binding info.

Display the linker optimization hints.

Use Mach-O specific object file parser. Commands and other options may behave differently when used with --macho.

Do not print any leading headers.

Do not print symbolic operands when disassembling.

Display the information for Mach-O objects in non-verbose or numeric form.

Display the Objective-C runtime meta data.

Display only the first format specific file header.

Display rebasing information.

Display runtime search paths for the binary.

Display universal headers.

Display weak binding information.

Add symbol description to disassembly output.

Decode traceback table in disassembly output. Implies --disassemble.

To report bugs, please visit <https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>.

llvm-nm(1), llvm-otool(1), llvm-readelf(1), llvm-readobj(1)

Maintained by the LLVM Team (https://llvm.org/).

2003-2024, LLVM Project

2024-01-25 11