OS Manuals

/usr/bin/llvm-objdump

Low-level virtual machine 20 - core frameworks

From llvm-20 20.1.8-r21 (os), captured 2026-11-05 by running llvm-objdump --help (exit 0). permalink

OVERVIEW: llvm object file dumper

USAGE: llvm-objdump [options] <input object files>

OPTIONS:
  --adjust-vma=offset     Increase the displayed address by the specified offset
  --all-headers           Display all available header information, relocation entries and the symbol table
  --arch-name=<value>     Target arch to disassemble for, see --version for available targets
  --archive-headers       Display archive header information
  -a                      Alias for --archive-headers
  --build-id=<hex>        Build ID to look up. Once found, added as an input file
  -C                      Alias for --demangle
  --debug-file-directory=<dir>
                          Path to directory where to look for debug files
  --debug-vars-indent=<value>
                          Distance to indent the source-level variable display, relative to the start of the disassembly
  --debug-vars=<value>    Print the locations (in registers or memory) of source-level variables alongside disassembly. Supported formats: ascii, unicode (default)
  --debuginfod            Use debuginfod to find debug files
  --demangle              Demangle symbol names
  --disassemble-all       Disassemble all sections found in the input files
  --disassemble-symbols=<value>
                          List of symbols to disassemble. Accept demangled names when --demangle is specified, otherwise accept mangled names
  --disassemble-zeroes    Do not skip blocks of zeroes when disassembling
  --disassembler-color=mode
                          Enable or disable disassembler color output. Valid options are "on", "off" and "terminal" (default)
  --disassembler-options=options
                          Pass target specific disassembler options
  --disassemble           Disassemble all executable sections found in the input files
  --dwarf=<value>         Dump the specified DWARF debug sections. The only supported value is 'frames'
  --dynamic-reloc         Display the dynamic relocation entries in the file
  --dynamic-syms          Display the contents of the dynamic symbol table
  -D                      Alias for --disassemble-all
  -d                      Alias for --disassemble
  --fault-map-section     Display the content of the fault map section
  --file-headers          Display the contents of the overall file header
  --full-contents         Display the content of each section
  -f                      Alias for --file-headers
  --headers               Alias for --section-headers
  --help                  Display available options (--help-hidden for more)
  -h                      Alias for --section-headers
  -j <value>              Alias for --section
  --line-numbers          When disassembling, display source line numbers. Implies --disassemble
  -l                      Alias for --line-numbers
  --macho                 Use MachO specific object file parser
  --mattr=a1,+a2,-a3,...  Target specific attributes (--mattr=help for details)
  --mcpu=cpu-name         Target a specific cpu type (--mcpu=help for details)
  -mllvm <arg>            Specify an argument to forward to LLVM's CommandLine library
  -M <value>              Alias for --disassembler-options=
  -m                      Alias for --macho
  --no-addresses          Alias for --no-leading-addr
  --no-debuginfod         Don't use debuginfod to find debug files
  --no-leading-addr       When disassembling, do not print leading addresses for instructions or inline relocations
  --no-print-imm-hex      Do not use hex format for immediate values
  --no-show-raw-insn      When disassembling instructions, do not print the instruction bytes.
  --offloading            Display the content of the offloading section
  --prefix-strip=prefix   Strip out initial directories from absolute paths. No effect without --prefix
  --prefix=prefix         Add prefix to absolute paths
  --pretty-pgo-analysis-map
                          Display PGO analysis values with formatting rather than raw numbers
  --print-imm-hex         Use hex format for immediate values (default)
  --private-headers       Display format specific file headers
  -p                      Alias for --private-headers
  --raw-clang-ast         Dump the raw binary contents of the clang AST section
  --reloc                 Display the relocation entries in the file
  -R                      Alias for --dynamic-reloc
  -r                      Alias for --reloc
  --section-headers       Display summaries of the headers for each section.
  --section=<value>       Operate on the specified sections only. With --macho dump segment,section
  --show-all-symbols      Show all symbols during disassembly, even if multiple symbols are defined at the same location
  --show-lma              Display LMA column when dumping ELF section headers
  --source                When disassembling, display source interleaved with the disassembly. Implies --disassemble
  --start-address=address Set the start address for disassembling, printing relocations and printing symbols
  --stop-address=address  Set the stop address for disassembling, printing relocations and printing symbols
  --symbol-description    Add symbol description for disassembly. This option is for XCOFF files only
  --symbolize-operands    Symbolize instruction operands when disassembling
  --syms                  Display the symbol table
  -S                      Alias for --source
  -s                      Alias for --full-contents
  --traceback-table       Decode traceback table in disassembly. Implies --disassemble. This option is for XCOFF files only
  --triple=<value>        Target triple to disassemble for, see --version for available targets
  -T                      Alias for --dynamic-syms
  -t                      Alias for --syms
  --unwind-info           Display unwind information
  -u                      Alias for --unwind-info
  --version               Display the version of this program
  -v                      Alias for --version
  --wide                  Ignored for compatibility with GNU objdump
  --x86-asm-syntax=att    Emit AT&T-style disassembly
  --x86-asm-syntax=intel  Emit Intel-style disassembly
  -x                      Alias for --all-headers
  -z                      Alias for --disassemble-zeroes

llvm-objdump MachO Specific Options:
  --arch=<value>         architecture(s) from a Mach-O file to dump
  --archive-member-offsets
                         Print the offset to each archive member for Mach-O archives (requires --macho and --archive-headers)
  --bind                 Display mach-o binding info
  --chained-fixups       Print chained fixup information (requires --macho)
  --data-in-code         Print the data in code table for Mach-O objects (requires --macho)
  --dis-symname <value>  disassemble just this symbol's instructions (requires --macho)
  --dsym=<value>         Use .dSYM file for debug info
  --dyld-info            Print bind and rebase information used by dyld to resolve external references in a final linked binary (requires --macho)
  --dylib-id             Print the shared library's id for the dylib Mach-O file (requires --macho)
  --dylibs-used          Print the shared libraries used for linked Mach-O files (requires --macho)
  --exports-trie         Display mach-o exported symbols
  --full-leading-addr    Print full leading address
  --function-starts=<value>
                         Print the function starts table for Mach-O objects. Options: addrs (default), names, both (requires --macho)
  -g                     Print line information from debug info if available
  --indirect-symbols     Print indirect symbol table for Mach-O objects (requires --macho)
  --info-plist           Print the info plist section as strings for Mach-O objects (requires --macho)
  --lazy-bind            Display mach-o lazy binding info
  --link-opt-hints       Print the linker optimization hints for Mach-O objects (requires --macho)
  --no-leading-headers   Print no leading headers
  --no-symbolic-operands do not symbolic operands when disassembling (requires --macho)
  --non-verbose          Print the info for Mach-O objects in non-verbose or numeric form (requires --macho)
  --objc-meta-data       Print the Objective-C runtime meta data for Mach-O files (requires --macho)
  --private-header       Display only the first format specific file header
  --rebase               Display mach-o rebasing info
  --rpaths               Print the runtime search paths for the Mach-O file (requires --macho)
  --universal-headers    Print Mach-O universal headers (requires --macho)
  --weak-bind            Display mach-o weak binding info

Pass @FILE as argument to read options from FILE.
Options (104)
OptionDescriptionSource
--adjust-vma offsetIncrease the displayed address by the specified offsethelp
--all-headersDisplay all available header information, relocation entries and the symbol tablehelp
--arch-name valueTarget arch to disassemble for, see --version for available targetshelp
--archive-headersDisplay archive header informationhelp
-aAlias for --archive-headershelp
--build-id hexBuild ID to look up.help
-CAlias for --demanglehelp
--debug-file-directory dirPath to directory where to look for debug fileshelp
--debug-vars-indent valueDistance to indent the source-level variable display, relative to the start of the disassemblyhelp
--debug-vars valuePrint the locations (in registers or memory) of source-level variables alongside disassembly.help
--debuginfodUse debuginfod to find debug fileshelp
--demangleDemangle symbol nameshelp
--disassemble-allDisassemble all sections found in the input fileshelp
--disassemble-symbols valueList of symbols to disassemble.help
--disassemble-zeroesDo not skip blocks of zeroes when disassemblinghelp
--disassembler-color modeEnable or disable disassembler color output.help
--disassembler-options optionsPass target specific disassembler optionshelp
--disassembleDisassemble all executable sections found in the input fileshelp
--dwarf valueDump the specified DWARF debug sections.help
--dynamic-relocDisplay the dynamic relocation entries in the filehelp
--dynamic-symsDisplay the contents of the dynamic symbol tablehelp
-DAlias for --disassemble-allhelp
-dAlias for --disassemblehelp
--fault-map-sectionDisplay the content of the fault map sectionhelp
--file-headersDisplay the contents of the overall file headerhelp
--full-contentsDisplay the content of each sectionhelp
-fAlias for --file-headershelp
--headersAlias for --section-headershelp
--helpDisplay available options (--help-hidden for more)help
-hAlias for --section-headershelp
-j valueAlias for --sectionhelp
--line-numbersWhen disassembling, display source line numbers.help
-lAlias for --line-numbershelp
--machoUse MachO specific object file parserhelp
--mattr, -a3 a1Target specific attributes (--mattr=help for details)help
--mcpu cpu-nameTarget a specific cpu type (--mcpu=help for details)help
-mllvm argSpecify an argument to forward to LLVM's CommandLine libraryhelp
-M valueAlias for --disassembler-options=help
-mAlias for --machohelp
--no-addressesAlias for --no-leading-addrhelp
--no-debuginfodDon't use debuginfod to find debug fileshelp
--no-leading-addrWhen disassembling, do not print leading addresses for instructions or inline relocationshelp
--no-print-imm-hexDo not use hex format for immediate valueshelp
--no-show-raw-insnWhen disassembling instructions, do not print the instruction bytes.help
--offloadingDisplay the content of the offloading sectionhelp
--prefix-strip prefixStrip out initial directories from absolute paths.help
--prefix prefixAdd prefix to absolute pathshelp
--pretty-pgo-analysis-mapDisplay PGO analysis values with formatting rather than raw numbershelp
--print-imm-hexUse hex format for immediate values (default)help
--private-headersDisplay format specific file headershelp
-pAlias for --private-headershelp
--raw-clang-astDump the raw binary contents of the clang AST sectionhelp
--relocDisplay the relocation entries in the filehelp
-RAlias for --dynamic-relochelp
-rAlias for --relochelp
--section-headersDisplay summaries of the headers for each section.help
--section valueOperate on the specified sections only.help
--show-all-symbolsShow all symbols during disassembly, even if multiple symbols are defined at the same locationhelp
--show-lmaDisplay LMA column when dumping ELF section headershelp
--sourceWhen disassembling, display source interleaved with the disassembly.help
--stop-address addressSet the stop address for disassembling, printing relocations and printing symbolshelp
--symbol-descriptionAdd symbol description for disassembly.help
--symbolize-operandsSymbolize instruction operands when disassemblinghelp
--symsDisplay the symbol tablehelp
-SAlias for --sourcehelp
-sAlias for --full-contentshelp
--traceback-tableDecode traceback table in disassembly.help
--triple valueTarget triple to disassemble for, see --version for available targetshelp
-TAlias for --dynamic-symshelp
-tAlias for --symshelp
--unwind-infoDisplay unwind informationhelp
-uAlias for --unwind-infohelp
--versionDisplay the version of this programhelp
-vAlias for --versionhelp
--wideIgnored for compatibility with GNU objdumphelp
--x86-asm-syntax attEmit AT&T-style disassemblyhelp
-xAlias for --all-headershelp
-zAlias for --disassemble-zeroeshelp
--arch valuearchitecture(s) from a Mach-O file to dumphelp
--archive-member-offsetsPrint the offset to each archive member for Mach-O archives (requires --macho and --archive-headers)help
--bindDisplay mach-o binding infohelp
--chained-fixupsPrint chained fixup information (requires --macho)help
--data-in-codePrint the data in code table for Mach-O objects (requires --macho)help
--dis-symname valuedisassemble just this symbol's instructions (requires --macho)help
--dsym valueUse .dSYM file for debug infohelp
--dyld-infoPrint bind and rebase information used by dyld to resolve external references in a final linked binary (requires --macho)help
--dylib-idPrint the shared library's id for the dylib Mach-O file (requires --macho)help
--dylibs-usedPrint the shared libraries used for linked Mach-O files (requires --macho)help
--exports-trieDisplay mach-o exported symbolshelp
--full-leading-addrPrint full leading addresshelp
--function-starts valuePrint the function starts table for Mach-O objects.help
-gPrint line information from debug info if availablehelp
--indirect-symbolsPrint indirect symbol table for Mach-O objects (requires --macho)help
--info-plistPrint the info plist section as strings for Mach-O objects (requires --macho)help
--lazy-bindDisplay mach-o lazy binding infohelp
--link-opt-hintsPrint the linker optimization hints for Mach-O objects (requires --macho)help
--no-leading-headersPrint no leading headershelp
--non-verbosePrint the info for Mach-O objects in non-verbose or numeric form (requires --macho)help
--objc-meta-dataPrint the Objective-C runtime meta data for Mach-O files (requires --macho)help
--private-headerDisplay only the first format specific file headerhelp
--rebaseDisplay mach-o rebasing infohelp
--rpathsPrint the runtime search paths for the Mach-O file (requires --macho)help
--universal-headersPrint Mach-O universal headers (requires --macho)help
--weak-bindDisplay mach-o weak binding infohelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.