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.
26 .. option:: -chained_fixups
28 Print chained fixup information.
32 Print linker optimization hints.
34 .. option:: -dyld_info
36 Print bind and rebase information.
40 Print shared library id.
48 Print universal headers.
52 Print data-in-code table.
54 .. option:: --help-hidden
56 Print help for hidden flags.
68 Print indirect symbol table.
76 Print used shared libraries.
82 .. option:: -mcpu=<value>
84 Select cpu for disassembly.
88 Print Objective-C segment.
92 Print __TEXT,__info_plist section as strings.
94 .. option:: -p <function name>
96 Start disassembly at <function name>.
100 Print relocation entries.
102 .. option:: -s <segname> <sectname>
104 Print contents of section.
110 .. option:: --version
116 Symbolize disassembled operands (implies :option:`-v`).
120 Verbose output / disassemble when printing text sections.
124 Omit leading addresses or headers.
128 Print all text sections.
132 Read command-line options and commands from response file `<FILE>`.
137 :program:`llvm-otool` exits with a non-zero exit code if there is an error.
138 Otherwise, it exits with code 0.
143 To report bugs, please visit <https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>.
148 :manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)`