LLVM-OTOOL(1)
π
LLVM-OTOOL β the Mach-O dumping tool (yes, that's the manual name, it's llvm-otool, from LLVM, bestie)
πΈ SYNOPSIS
llvm-otool [option...] [file...]
β¨ DESCRIPTION
Okay so llvm-otool is a tool for dumping Mach-O files. That's the whole vibe. π
The tea here is that it attempts to be command-line-compatible and output-compatible with macOS's otool. Like, it's trying to match its whole energy. π«Ά
π OPTIONS π
Let's go through literally every single one, no skipping, I promise:
-arch <value>β picks out the slice of a universal Mach-O file. Choose your fighter. π¦-Cβ prints linker optimization hints.-Dβ prints the shared library id.-dβ prints the data section.-fβ prints universal headers.-Gβ prints the data-in-code table.--help-hiddenβ prints help for the hidden flags π (iykyk).--helpβ prints help. The regular kind.-hβ prints the mach header.-Iβ prints the indirect symbol table.-jβ prints opcode bytes.-Lβ prints the used shared libraries.-lβ prints load commands. (Lowercase, bestie β do not confuse it with-Lπ)-mcpu=<value>β selects the cpu for disassembly. Note the=β it's giving-mcpu=<value>, not a space. π-oβ prints the Objective-C segment.-Pβ prints the__TEXT,__info_plistsection as strings.-p <function name>β starts disassembly at <function name>.-rβ prints relocation entries.-s <segname> <sectname>β prints the contents of a section. Two args, both required, in that order. π―-tβ prints the text section.--versionβ prints the version.-Vβ symbolizes disassembled operands (and it implies-v, so you get verbose for free β¨).-vβ verbose output / disassemble when printing text sections. Two moods, one flag.-Xβ omits leading addresses or headers.-xβ prints all text sections. yes, all of them. π@<FILE>β reads command-line options and commands from the response file <FILE>. Iconic little at-sign moment. π
π₯ EXIT STATUS
llvm-otool exits with a non-zero exit code if there's an error. Otherwise? It exits with code 0. Slay. β
π BUGS
Wanna report a bug? Please visit [the link below] β literally this one:
https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/
(The original line breaks it as https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/ β same URL, just wrapped in the manpage. π«Ά)
π SEE ALSO
π AUTHOR
Maintained by the LLVM Team (https://llvm.org/). Shoutout to the whole team, fr fr. π
π§ COPYRIGHT
2003-2023, LLVM Project
ngl that's the whole page, bestie β every flag, every path, every number, untouched. Main character energy only. π
okay bye, this was LLVM-OTOOL(1), page 15, dated 2023-01-14 β mwah π see u in the group chat β¨
π¦ where this page comes from
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms