1 .TH OTOOL 1 "May 21, 2012" "Apple, Inc."
3 otool \- object file displaying tool
14 command displays specified parts of object files or libraries. If the,
16 option is not used, the file
17 arguments may be of the form
19 to request information about only that object file and not
20 the entire library. (Typically this argument must be quoted,
22 to get it past the shell.)
24 understands both Mach-O (Mach object) files and universal file formats.
26 can display the specified information in either its raw (numeric) form
29 flag), or in a symbolic form using macro names of constants, etc. (with the
35 At least one of the following options must be specified:
38 Display the archive header, if the file is an archive.
41 Display the contents of the `\_\^\_.SYMDEF' file, if the file is an archive.
44 Display the universal headers.
47 Display the Mach header.
50 Display the load commands.
53 Display the names and version numbers of the shared libraries that the object
54 file uses. As well as the shared library ID if the file is a shared library.
57 Display just install name of a shared library.
59 .BI \-s " segname sectname"
60 Display the contents of the section
61 .RI ( segname,sectname ).
64 flag is specified, the section is displayed as its type, unless the type is
65 zero (the section header flags). Also the sections
66 (\_\^\_OBJC,\_\^\_protocol),
67 (\_\^\_OBJC,__string_object) and (\_\^\_OBJC,\_\^\_runtime_setup) are displayed
73 Display the contents of the (\_\^\_TEXT,\_\^\_text) section. With the
75 flag, this disassembles the text. And with
77 it also symbolically disassembles the operands.
80 Display the contents of the (\_\^\_DATA,\_\^\_data) section.
83 Display the contents of the \_\^\_OBJC segment used by the Objective-C run-time
87 Display the relocation entries.
90 Display the argument strings (argv[] and envp[]) from a core file.
93 Display the indirect symbol table.
96 Display the table of contents for a dynamically linked shared library.
99 Display the reference table of a dynamically linked shared library.
102 Display the module table of a dynamically linked shared library.
105 Display the two-level namespace hints table.
108 Display the data in code table.
111 The following options may also be given:
120 options to start the disassembly from symbol
122 and continue to the end of the (\_\^\_TEXT,\_\^\_text) section.
125 Display verbosely (symbolically) when possible.
128 Display the disassembled operands symbolically (this implies the
130 option). This is useful with the
135 Don't print leading addresses or headers with disassembly of sections.
138 Use the llvm disassembler when doing disassembly, this is available for the x86
139 and arm architectures.
143 disassembler when doing disassembly.
145 .BI \-arch " arch_type"
146 Specifies the architecture,
150 to operate on when the file is a universal file. (See
152 for the currently know
156 can be "all" to operate on all architectures in the file.
157 The default is to display only the host architecture, if the file contains it;
158 otherwise, all architectures in the file are shown.
161 The object file names are not assumed to be in the archive(member) syntax,
162 which allows file names containing parenthesis.
164 install_name_tool(1), dyld(1) and libtool(1)