LLVM-OTOOL(1)
β¨ LLVM-OTOOL(1) β¨
okay bestie, welcome to the llvm-otool page, straight outta the LLVM manual set π this one's a little tool with main character energy, so let's get into it.
π NAME π
llvm-otool β a Mach-O dumping tool. that's it, that's the job, and it does it flawlessly. π
π¦ SYNOPSIS π¦
llvm-otool [optionβ¦] [fileβ¦]
πΈ DESCRIPTION πΈ
so like, llvm-otool is a tool for dumping Mach-O files. that's the whole vibe. π«Ά
and here's the slay: it attempts to be command-line-compatible and output-compatible with macOS's otool. so if you already know otool, you already know her. no cap. π―
π OPTIONS π
-arch <value>β pick which slice you want out of a universal Mach-O file. choose your fighter β¨-Cβ print linker optimization hints. lil notes the linker left behind π-Dβ print the shared library id.-dβ print the data section.-fβ print universal headers.-Gβ print the data-in-code table.--help-hiddenβ print help for the hidden flags π the secret menu, iykyk--helpβ print help.-hβ print the mach header.-Iβ print the indirect symbol table.-jβ print opcode bytes.-Lβ print used shared libraries.-lβ print load commands.-mcpu=<value>β select the cpu for disassembly. lowercasel, bestie, don't come for me π₯-oβ print the Objective-C segment.-Pβ print the__TEXT,__info_plistsection as strings.-p <function name>β start disassembly at<function name>. jump right in π-rβ print relocation entries.-s <segname> <sectname>β print contents of a section. two args, both required, no skipping π―-tβ print the text section.--versionβ print version.-Vβ symbolize disassembled operands (and yes, this implies-v, so it's a two-for-one π).-vβ verbose output / disassemble when printing text sections.-Xβ omit leading addresses or headers. minimalism era πΏ-xβ print all text sections.@<FILE>β read command-line options and commands from the response file<FILE>. it's like a little snack pack of args π
π EXIT STATUS π
llvm-otool exits with a non-zero exit code if there's an error. otherwise? it exits with code 0. clean. iconic. no notes. π
π BUGS π
to report bugs, please visit:
https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/
(the original wraps that URL across a line with a hyphen-thing, but it's one link, bestie, go click it π«Ά)
π SEE ALSO π
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). they're the parents of this whole ecosystem fr fr π
β COPYRIGHT β
2003-2025, LLVM Project
and that's the page!! β¨ 14 whole pages of manual glory, dated 2025-05-22, brought to you by LLVM-OTOOL(1) herself. mwah. go dump some Mach-O files, you got this π ππ
π¦ where this page comes from
- ubuntu questing: llvm-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms