OS Manuals

/usr/lib/llvm-17/bin/llvm-otool

Low-level virtual machine 17 - core frameworks

From llvm-17 17.0.6-r30 (os), captured 2026-11-05 by running llvm-otool --help (exit 0). permalink

OVERVIEW: Mach-O object file displaying tool

USAGE: llvm-otool [option...] [file...]

OPTIONS:
  -arch <value>           select slice of universal Mach-O file
  -chained_fixups         print chained fixup information
  -C                      print linker optimization hints
  -dyld_info              print bind and rebase information
  -D                      print shared library id
  -d                      print data section
  -f                      print universal headers
  -G                      print data-in-code table
  --help-hidden           print help for hidden flags
  --help                  print help
  -h                      print mach header
  -I                      print indirect symbol table
  -j                      print opcode bytes
  -L                      print used shared libraries
  -l                      print load commnads
  -mcpu=<value>           select cpu for disassembly
  -o                      print Objective-C segment
  -P                      print __TEXT,__info_plist section as strings
  -p <function name>      start disassembly at <function name>
  -r                      print relocation entries
  -s <segname> <sectname> print contents of section
  -t                      print text section
  --version               print version
  -V                      symbolize disassembled operands (implies -v)
  -v                      verbose output / disassemble when printing text sections
  -X                      omit leading addresses or headers
  -x                      print all text sections

Pass @FILE as argument to read options from FILE.
Options (26)
OptionDescriptionSource
-arch valueselect slice of universal Mach-O filehelp
-chained_fixupsprint chained fixup informationhelp
-Cprint linker optimization hintshelp
-dyld_infoprint bind and rebase informationhelp
-Dprint shared library idhelp
-dprint data sectionhelp
-fprint universal headershelp
-Gprint data-in-code tablehelp
--help-hiddenprint help for hidden flagshelp
--helpprint helphelp
-hprint mach headerhelp
-Iprint indirect symbol tablehelp
-jprint opcode byteshelp
-Lprint used shared librarieshelp
-lprint load commnadshelp
-mcpu valueselect cpu for disassemblyhelp
-oprint Objective-C segmenthelp
-Pprint __TEXT,__info_plist section as stringshelp
-p functionstart disassembly at <function name>help
-rprint relocation entrieshelp
-tprint text sectionhelp
--versionprint versionhelp
-Vsymbolize disassembled operands (implies -v)help
-vverbose output / disassemble when printing text sectionshelp
-Xomit leading addresses or headershelp
-xprint all text sectionshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.