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_plist section 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 -V implies -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

squad goals, honestly πŸ‘‘

πŸ’œ Author

maintained by the LLVM Team (https://llvm.org/). absolute icons, no notes 🫢

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