LLVM-OTOOL(1)

πŸ’– NAME πŸ’–

Bestie, meet llvm-otool(1) β€” the LLVM Mach-O dumping tool, aka the little icon that stares into Mach-O files so you don’t have to. This is the LLVM manual page, and we’re gonna walk it together, no cap.

πŸŽ€ SYNOPSIS πŸŽ€

llvm-otool [option…] [file…]

✨ DESCRIPTION ✨

llvm-otool is a tool for dumping Mach-O files, periodt.

It attempts to be command-line-compatible and output-compatible with macOS’s otool. Like, it’s giving β€œI match the command line and the output” energy, and honestly? Respect.

πŸ’… OPTIONS πŸ’…

  • -arch <value> β€” selects the slice of a universal Mach-O file. Main-character slice selection, honestly.
  • -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 hidden flags. Secret menu vibes πŸ‘€
  • --help β€” prints help.
  • -h β€” prints the mach header.
  • -I β€” prints the indirect symbol table.
  • -j β€” prints opcode bytes.
  • -L β€” prints used shared libraries.
  • -l β€” prints load commands.
  • -mcpu=<value> β€” selects cpu for disassembly.
  • -o β€” prints the Objective-C segment.
  • -P β€” prints the __TEXT,__info_plist section as strings.
  • -p <function name> β€” starts disassembly at <function name>.
  • -r β€” prints relocation entries.
  • -s <segname> <sectname> β€” prints contents of section.
  • -t β€” prints the text section.
  • --version β€” prints version.
  • -V β€” symbolizes disassembled operands (implies -v).
  • -v β€” verbose output / disassemble when printing text sections.
  • -X β€” omits leading addresses or headers.
  • -x β€” prints all text sections.
  • @<FILE> β€” reads command-line options and commands from response file <FILE>. It’s giving β€œoptions in a little file,” iconic.

πŸ¦‹ EXIT STATUS πŸ¦‹

llvm-otool exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. That’s the whole vibe check: error = non-zero, no error = 0.

🫢 BUGS 🫢

To report bugs, please visit <‐ https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>. Go spill the tea to the LLVM team, bestie.

🌈 SEE ALSO 🌈

πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). Shoutout to the maintainers, fr fr.

2003-2023, LLVM Project. Respect the legacy, periodt.


πŸ’– and that’s the LLVM-OTOOL(1) page β€” from LLVM, version 15, dated 2023-07-14 β€” mwah, bye bestie πŸ’–

πŸ“¦ where this page comes from