LLVM-OTOOL(1)
π NAME
okay so you've found llvm-otool β the Mach-O dumping tool, bestie. that's the whole name, that's the whole vibe. it dumps Mach-O files and it does it gorgeously π
it comes to you courtesy of the LLVM manual (yes, that LLVM, the icon herself π), so you already know it's gonna be good.
β¨ SYNOPSIS
llvm-otool [option...] [file...]
options first, files after, mix and match as your heart desires π¦
πΈ DESCRIPTION
so llvm-otool is a tool for dumping Mach-O files. that's it, that's the job, and she does it well.
the goal here? it attempts to be command-line-compatible and output-compatible with macOS's otool. like, it's giving "your fave but make it LLVM" β same energy, same output, no cap π«Ά
π OPTIONS
okay here's the menu, bestie β every single one, no skipping, we don't do that here π
-arch <value>β picks which slice of a universal Mach-O file you wanna look at. universal files are literally multitasking icons, so you gotta tell her which one β¨-chained_fixupsβ prints out the chained fixup information. yep, that's the whole thing π¦-Cβ prints the linker optimization hints. lil hints, big energy.-dyld_infoβ prints the bind and rebase information. the dynamic linker lore, served fresh π-Dβ prints the shared library id. name drop moment π-dβ prints the data section. data girlies rise πΈ-fβ prints the universal headers. iconic multi-arch behavior π-Gβ prints the data-in-code table. very niche, very valid.--help-hiddenβ prints help for the hidden flags. secret menu unlocked π₯ (iykyk)--helpβ prints help. the classic, the staple, the moment π-hβ prints the mach header. lowercase h, big importance β-Iβ prints the indirect symbol table. indirect but never subtle π-jβ prints opcode bytes. raw bytes, no filter β¨-Lβ prints the used shared libraries. who's she linking with? π-lβ prints the load commands. all of them, the whole lineup π-mcpu=<value>β selects the cpu for disassembly. pick your fighter π-oβ prints the Objective-C segment. obj-c girlies, this one's for you π-Pβ prints the__TEXT,__info_plistsection as strings. plist but make it readable π§-p <function name>β starts disassembly at <function name>. jump straight to your fave, no scrolling π-rβ prints the relocation entries. moving things around, literally π¦-s <segname> <sectname>β prints the contents of a section. you give her the segment name and the section name, she gives you the goods, periodt β¨-tβ prints the text section. the main character section, honestly π--versionβ prints the version. gotta know what era you're in π-Vβ symbolizes disassembled operands (and implied: it implies-v, so you get verbose as a bonus). two for one, slay π-vβ verbose output / disassemble when printing text sections. she's a talker and we love her for it π-Xβ omits the leading addresses or headers. minimalist era, no clutter πΈ-xβ prints all text sections. not one, not two β all of them π₯@<FILE>β reads command-line options and commands from the response file <FILE>. very "here's my list, don't @ me" of her π
real talk for a sec: that-Vimplies-v, so don't be surprised when things get chatty π«Ά
π¦ EXIT STATUS
llvm-otool exits with a non-zero exit code if there is an error. otherwise? she exits with code 0, flawless, unbothered, moisturised β¨
π BUGS
found a bug? first of all, relatable. to report it, please visit:
<<https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>>
go be a good citizen, the maintainers will appreciate you fr fr π
π SEE ALSO
llvm-nm(1)<llvm-nm.html>llvm-objdump(1)<llvm-objdump.html>
squad goals, honestly π
π Author
maintained by the LLVM Team (https://llvm.org/). absolute icons, no notes π«Ά
β Copyright
2003-2026, LLVM Project β the copyright range said what it said π
okay bestie that's the whole page, and before you go β lil sign-off from me to you: this is LLVM manual page 15, dated 2026-09-09 π go dump some Mach-O files, you're gonna eat β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: llvm-18 1:18.1.8-20ubuntu11 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms