LLVM-OBJDUMP(1)
π LLVM-OBJDUMP(1) β LLVM's object file dumper β¨
okay bestie, welcome to the LLVM manual, section 1, and today's main character is llvm-objdump π she's the girl who opens up your object files and final linked images and tells you everything that's inside. no secrets. no cap. π
πΈ NAME πΈ
llvm-objdump β LLVM's object file dumper π¦
β¨ SYNOPSIS β¨
llvm-objdump [commands] [options] [filenames...]
π DESCRIPTION π
So basically, llvm-objdump prints the contents of the object files and final linked images you name on the command line. literally just hands you the tea β
No file name given? She'll try to read from a.out β like, default behaviour, we love a fallback. π
And if you use - as a file name, she'll process a file on her standard input stream. icon behaviour, honestly. π
π COMMANDS π
At least one of these commands is required, and some commands can be stacked with other commands. mix and match, it's giving build-your-own-adventure π
-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. all of them. every single one. π--disassemble-symbols=<symbol1[,symbol2,...]>β Disassemble only the specified symbols. Takes demangled symbol names when--demangleis specified, otherwise takes mangled symbol names. Implies--disassemble. π―--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,--section-headersβ Display summaries of the headers for each section. π--helpβ Display usage information and exit. Does not stack with other commands. πͺ-p,--private-headersβ Display format-specific file headers. π€«-r,--relocβ Display the relocation entries in the file. π-R,--dynamic-relocβ Display the dynamic relocation entries in the file. π--raw-clang-astβ Dump the raw binary contents of the clang AST section. π³-s,--full-contentsβ Display the contents of each section. π-t,--symsβ Display the symbol table. π€-T,--dynamic-symsβ Display the contents of the dynamic symbol table. π‘-u,--unwind-infoβ Display the unwind info of the input(s).- This operation is only currently supported for
COFFandMach-Oobject files. π«Ά
- This operation is only currently supported for
-v,--versionβ Display the version of thellvm-objdumpexecutable. Does not stack with other commands. π·οΈ-x,--all-headersβ Display all available header information. Equivalent to specifying--archive-headers,--file-headers,--private-headers,--reloc,--section-headers, and--syms. the whole buffet, no notes π
π OPTIONS π
llvm-objdump supports the following options:
--adjust-vma=<offset>β Increase the displayed address in disassembly or section header printing by the specified offset. π--arch-name=<string>β Specify the target architecture when disassembling. Use--versionfor a list of available targets. ποΈ--build-id=<string>β 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. π-C,--demangleβ Demangle symbol names in the output. un-mangle-ify that girl β¨--debug-file-directory <path>β Provide a path to a directory with a.build-idsubdirectory to search for debug information for stripped binaries. Multiple instances of this argument are searched in the order given. πΊοΈ--debug-indent=<width>β Distance to indent the source-level variable or inlined function display, relative to the start of the disassembly. Defaults to52characters. π--debug-inlined-funcs[=<format>]β Print the locations of inlined functions alongside disassembly. format may beascii,limits-only, orunicode, defaulting tounicodeif omitted. π«--debug-vars[=<format>]β Print the locations (in registers or memory) of source-level variables alongside disassembly. format may beasciiorunicode, defaulting tounicodeif omitted. π--debuginfod,--no-debuginfodβ 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 variableDEBUGINFOD_URLS. π-j,--section=<section1[,section2,...]>β Perform commands on the specified sections only. For Mach-O usesegment,sectionto specify the section name. βοΈ-l,--line-numbersβ When disassembling, display source line numbers. Implies--disassemble. π’-M,--disassembler-options=<opt1[,opt2,...]>β Pass target-specific disassembler options. Available options:reg-names-std: ARM only (default). Print in ARM 's instruction set documentation, withr13/r14/r15replaced bysp/lr/pc.reg-names-raw: ARM only. Userfollowed 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. printx1instead ofra)att: x86 only (default). Print in the AT&T syntax.intel: x86 only. Print in the intel syntax.
--disassembler-color=<mode>β Enable or disable disassembler color output. πoff: Disable disassembler color output.on: Enable disassembler color output.terminal: Enable disassembler color output if the terminal supports it (default).
--mcpu=<cpu-name>β Target a specific CPU type for disassembly. Specify--mcpu=helpto display available CPUs. π§--mattr=<a1,+a2,-a3,...>β Enable/disable target-specific attributes. Specify--mattr=helpto display the available attributes. ποΈ-mllvm <arg>β Specify an argument to forward to LLVM's CommandLine library. π¨--no-leading-addr,--no-addressesβ When disassembling, do not print leading addresses for instructions or inline relocations. π«--no-print-imm-hexβ Do not use hex format for immediate values in disassembly output. π--no-show-raw-insnβ When disassembling, do not print the raw bytes of each instruction. π§Ό--offloadingβ Display the content of the LLVM offloading sections and HIP offload bundles. π--prefix=<prefix>β When disassembling with the--sourceoption, prepend prefix to absolute paths. π§©--prefix-strip=<level>β When disassembling with the--sourceoption, strip out level initial directories from absolute paths. This option has no effect without--prefix. βοΈ--print-imm-hexβ Use hex format when printing immediate values in disassembly output (default). π’-S,--sourceβ When disassembling, display source interleaved with the disassembly. Implies--disassemble. π--show-all-symbolsβ Show all symbols during disassembly, even if multiple symbols are defined at the same location. π―--show-lmaβ Display the LMA column when dumping ELF section headers. Defaults to off unless any section has different VMA and LMAs. π--start-address=<address>β 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. π¦
--stop-address=<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. π
--symbolize-operandsβ 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-mapsection is present (i.e., the object file is built with-fbasic-block-address-map), labels are retrieved from that section instead. If apgo-analysis-mapis present alongside thebb-address-map, any available analyses are printed after the relevant block label. By default, any analysis with a special representation (i.e.BlockFrequency,BranchProbability, etc) are printed as raw hex values. - Only supported for
AArch64,BPF,PowerPC, andX86. π―
Example:
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>
--pretty-pgo-analysis-mapβ When using--symbolize-operandswithbb-address-mapandpgo-analysis-map, print analyses using the same format as their analysis passes would. An example of pretty format would be printing block frequencies relative to the entry block, the same as BFI. π- Only works when
--symbolize-operandsis enabled. π«Ά
- Only works when
--triple=<string>β Target triple to disassemble for, see--versionfor available targets. π―-w,--wideβ Ignored for compatibility with GNU objdump. π«₯ (yes she's just standing there, minding her business)--x86-asm-syntax=<style>β Deprecated. When used with--disassemble, choose style of code to emit from X86 backend. Supported values are:attβ AT&T-style assemblyintelβ Intel-style assembly
The default disassembly style is att. π¨
-z,--disassemble-zeroesβ Do not skip blocks of zeroes when disassembling. 0οΈβ£@<FILE>β Read command-line options and commands from response file<FILE>. π₯
bestie we are not done yet β this page keeps going, and so do we π
π MACH-O ONLY OPTIONS AND COMMANDS π
Okay bestie, this whole lil' section is Apple-coded π β everything here is for Mach-O files, iykyk. Same rules tho: exact flags, exact behaviour, no made-up lore.
--arch=<architecture>β tells it which architecture to disassemble. Wanna know what architectures you've even got to pick from? Go peek at--version, it'll spill. β¨--archive-member-offsetsβ prints the offset to each archive member for Mach-O archives. Heads up tho: this one requires--archive-headersto come along for the ride. π--bindβ shows you the binding info.--data-in-codeβ displays the data in code table.--dis-symname=<name>β disassembles just the instructions of the symbol you name. Only that one. Main character behaviour, honestly. π--chained-fixupsβ prints chained fixup information.--dyld-infoβ prints the bind and rebase info that dyld uses to resolve external references in a final linked binary. π¦--dylibs-usedβ displays the shared libraries used for linked files.--dsym=<string>β use a.dSYMfile for debug info.--dylib-idβ displays the shared library's ID for dylib files.--exports-trieβ displays exported symbols.--function-starts [=<addrs|names|both>]β prints the function starts table for Mach-O objects. You can pick:addrs(that's the default) to print just the addresses of the functions,namesto print just the names of the functions (when available), orbothto print the names right next to the addresses. Pick your fighter. πΈ-gβ prints line information from debug info, if it's available.--full-leading-addrβ prints the full leading address when disassembling. No truncation, no crumbs, full meal. π--indirect-symbolsβ displays the indirect symbol table.--info-plistβ displays the info plist section as strings.--lazy-bindβ displays lazy binding info.--link-opt-hintsβ displays the linker optimization hints.-m,--machoβ use the Mach-O specific object file parser. Real talk: commands and other options may behave differently when you use them with--macho. So don't be shocked, it's giving different on purpose. π--no-leading-headersβ don't print any leading headers.--no-symbolic-operandsβ don't print symbolic operands when disassembling.--non-verboseβ displays the info for Mach-O objects in non-verbose (aka numeric) form.--objc-meta-dataβ displays the Objective-C runtime meta data.--private-headerβ displays only the first format specific file header.--rebaseβ displays rebasing information.--rpathsβ displays the runtime search paths for the binary.--universal-headersβ displays universal headers.--weak-bindβ displays weak binding information.
π XCOFF ONLY OPTIONS AND COMMANDS π
And now for the IBM-flavoured corner of the function, bestie β XCOFF only, no crossover episodes. π§
--symbol-descriptionβ adds symbol description to the disassembly output.--traceback-tableβ decodes the traceback table in the disassembly output. And yes, it implies--disassemble, so it'll pull that in for you automatically. Convenient, iconic, no notes. β¨
π BUGS π
Found a bug? First of all, thank you for your service π«Ά. Please go report it over at <<https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>>.
π SEE ALSO π
llvm-nm(1)<llvm-nm.html>llvm-otool(1)<llvm-otool.html>llvm-readelf(1)<llvm-readelf.html>llvm-readobj(1)<llvm-readobj.html>
π Author π
Maintained by the LLVM Team (https://llvm.org/). They keep this whole thing fed and hydrated, fr fr.
π Copyright π
2003-2026, LLVM Project. Respect the legacy, periodt. π
And that's a wrap on LLVM-OBJDUMP(1)! This page came straight out of the LLVM source, dated 2026-07-16, and it was page 22 of the manual β a whole twenty-two pages of objdump excellence, slay. Go read your binaries, bestie, you've got this π
β¨π¦
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms