Manual Pages for UNIX Darwin command on man otool
MyWebUniversity

Manual Pages for UNIX Darwin command on man otool

OTOOL(1) OTOOL(1)

NAME

otool - object file displaying tool

SYNOPSIS

oottooooll [ option ... ] [ file ... ]

DESCRIPTION

The otool command displays specified parts of object files or

libraries. If the, -mm option is not used, the file arguments may be of

the form libx.a(foo.o), to request information about only that object file and not the entire library. (Typically this argument must be

quoted, ``libx.a(foo.o)'', to get it past the shell.) Otool under-

stands both Mach-O (Mach object) files and universal file formats.

Otool can display the specified information in either its raw (numeric)

form (without the -vv flag), or in a symbolic form using macro names of

constants, etc. (with the -vv or -VV flag).

At least one of the following options must be specified:

-aa Display the archive header, if the file is an archive.

-SS Display the contents of the `.SYMDEF' file, if the file is an

archive.

-ff Display the universal headers.

-hh Display the Mach header.

-ll Display the load commands.

-LL Display the names and version numbers of the shared libraries

that the object file uses.

-DD Display just install name of a shared library.

-ss segname sectname

Display the contents of the section (segname,sectname). If the

-vv flag is specified, the section is displayed as its type,

unless the type is zero (the section header flags). Also the sections (OBJC,protocol), (OBJC,stringobject) and

(OBJC,runtimesetup) are displayed symbolically if the -vv

flag is specified.

-tt Display the contents of the (TEXT,text) section. With the

-vv flag, this disassembles the text. And with -VV, it also sym-

bolically disassembles the operands.

-dd Display the contents of the (DATA,data) section.

-oo Display the contents of the OBJC segment used by the Objec-

tive-C run-time system.

-rr Display the relocation entries.

-cc Display the argument strings (argv[] and envp[]) from a core

file.

-II Display the indirect symbol table.

-TT Display the table of contents for a dynamically linked shared

library.

-RR Display the reference table of a dynamically linked shared

library.

-MM Display the module table of a dynamically linked shared library.

-HH Display the two-level namespace hints table.

The following options may also be given:

-pp name

Used with the -tt and -vv or -VV options to start the disassembly

from symbol name and continue to the end of the (TEXT,text) section.

-vv Display verbosely (symbolically) when possible.

-VV Display the disassembled operands symbolically (this implies the

-vv option). This is useful with the -tt option.

-XX Don't display leading addresses when displaying contents of sec-

tions.

-aarrcchh archtype

Specifies the architecture, archtype, of the file for otool(1)

to operate on when the file is a universal file. (See arch(3) for the currently know archtypes.) The archtype can be "all" to operate on all architectures in the file. The default is to display only the host architecture, if the file contains it; otherwise, all architectures in the file are shown.

-mm The object file names are not assumed to be in the archive(mem-

ber) syntax, which allows file names containing parenthesis. Apple Computer, Inc. July 28, 2005 OTOOL(1)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™