1llvm-otool - Mach-O dumping tool 2================================ 3 4.. program:: llvm-otool 5 6SYNOPSIS 7-------- 8 9:program:`llvm-otool` [*option...*] *[file...]* 10 11DESCRIPTION 12----------- 13 14:program:`llvm-otool` is a tool for dumping Mach-O files. 15 16It attempts to be command-line-compatible and output-compatible with macOS's 17:program:`otool`. 18 19OPTIONS 20------- 21 22.. option:: -arch <value> 23 24 Select slice of universal Mach-O file. 25 26.. option:: -chained_fixups 27 28 Print chained fixup information. 29 30.. option:: -C 31 32 Print linker optimization hints. 33 34.. option:: -dyld_info 35 36 Print bind and rebase information. 37 38.. option:: -D 39 40 Print shared library id. 41 42.. option:: -d 43 44 Print data section. 45 46.. option:: -f 47 48 Print universal headers. 49 50.. option:: -G 51 52 Print data-in-code table. 53 54.. option:: --help-hidden 55 56 Print help for hidden flags. 57 58.. option:: --help 59 60 Print help. 61 62.. option:: -h 63 64 Print mach header. 65 66.. option:: -I 67 68 Print indirect symbol table. 69 70.. option:: -j 71 72 Print opcode bytes. 73 74.. option:: -L 75 76 Print used shared libraries. 77 78.. option:: -l 79 80 Print load commands. 81 82.. option:: -mcpu=<value> 83 84 Select cpu for disassembly. 85 86.. option:: -o 87 88 Print Objective-C segment. 89 90.. option:: -P 91 92 Print __TEXT,__info_plist section as strings. 93 94.. option:: -p <function name> 95 96 Start disassembly at <function name>. 97 98.. option:: -r 99 100 Print relocation entries. 101 102.. option:: -s <segname> <sectname> 103 104 Print contents of section. 105 106.. option:: -t 107 108 Print text section. 109 110.. option:: --version 111 112 Print version. 113 114.. option:: -V 115 116 Symbolize disassembled operands (implies :option:`-v`). 117 118.. option:: -v 119 120 Verbose output / disassemble when printing text sections. 121 122.. option:: -X 123 124 Omit leading addresses or headers. 125 126.. option:: -x 127 128 Print all text sections. 129 130.. option:: @<FILE> 131 132 Read command-line options and commands from response file `<FILE>`. 133 134EXIT STATUS 135----------- 136 137:program:`llvm-otool` exits with a non-zero exit code if there is an error. 138Otherwise, it exits with code 0. 139 140BUGS 141---- 142 143To report bugs, please visit <https://github.com/llvm/llvm-project/labels/tools:llvm-objdump/>. 144 145SEE ALSO 146-------- 147 148:manpage:`llvm-nm(1)`, :manpage:`llvm-objdump(1)` 149