1 llvm-otool - Mach-O dumping tool
2 ================================
4 .. program:: llvm-otool
9 :program:`llvm-otool` [*option...*] *[file...]*
14 :program:`llvm-otool` is a tool for dumping Mach-O files.
16 It attempts to be command-line-compatible and output-compatible with macOS's
22 .. option:: -arch <value>
24 Select slice of universal Mach-O file.
28 Print linker optimization hints.
32 Print shared library id.
40 Print universal headers.
44 Print data-in-code table.
46 .. option:: --help-hidden
48 Print help for hidden flags.
60 Print indirect symbol table.
68 Print used shared libraries.
74 .. option:: -mcpu=<value>
76 Select cpu for disassembly.
80 Print Objective-C segment.
84 Print __TEXT,__info_plist section as strings.
86 .. option:: -p <function name>
88 Start disassembly at <function name>.
92 Print relocation entries.
94 .. option:: -s <segname> <sectname>
96 Print contents of section.
102 .. option:: --version
108 Symbolize disassembled operands (implies :option:`-v`).
112 Verbose output / disassemble when printing text sections.
116 Omit leading addresses or headers.
120 Print all text sections.
124 Read command-line options and commands from response file `<FILE>`.
129 :program:`llvm-otool` exits with a non-zero exit code if there is an error.
130 Otherwise, it exits with code 0.
135 To report bugs, please visit <https://bugs.llvm.org/>.
140 :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`