Scroll to navigation

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

NAME

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:

Display the information contained within an archive's headers.

Disassemble all text sections found in the input files.

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 unwind info of the input(s).

Display the version of this program. 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.

OPTIONS

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.

Demangle symbol names in the output.

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. Currently supported for ARM targets only. Available options are reg-names-std and reg-names-raw.

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

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

When disassembling, do not print leading addresses.

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

Use hex format when printing immediate values in disassembly output.

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

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.


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

Ignored for compatibility with GNU objdump.

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>.

MACH-O ONLY OPTIONS AND COMMANDS

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

Create a CFG for every symbol in the object file and write it to a graphviz file.

Display the data in code table.

Disassemble just the specified symbol's instructions.

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 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 universal headers.

Display weak binding information.

BUGS

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

SEE ALSO

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

AUTHOR

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

COPYRIGHT

2003-2019, LLVM Project

2019-12-20 9