2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
4 .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/.
6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text
7 .\" are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical
8 .\" and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
9 .\" This notice shall appear on any product containing this material.
10 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
11 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
12 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
13 .TH DIS 1 "Aug 24, 2009"
15 dis \- object code disassembler
19 \fBdis\fR [\fB-onqCLV\fR] [\fB-d\fR \fIsec\fR] [\fB-D\fR \fIsec\fR] [\fB-F\fR \fIfunction\fR]
20 [\fB-l\fR \fIstring\fR] [\fB-t\fR \fIsec\fR] \fIfile\fR...
26 The \fBdis\fR command produces an assembly language listing of \fIfile\fR,
27 which can be an object file or an archive of object files. The listing includes
28 assembly statements and an octal or hexadecimal representation of the binary
29 that produced those statements.
33 Options are interpreted by the disassembler and can be specified in any order.
36 The following options are supported:
43 Displays demangled C++ symbol names in the disassembly.
49 \fB\fB-d\fR \fIsec\fR\fR
52 Disassembles the named section as data, printing the offset of the data from
53 the beginning of the section.
59 \fB\fB-D\fR \fIsec\fR\fR
62 Disassembles the named section as data, printing the actual address of the
69 \fB\fB-F\fR \fIfunction\fR\fR
72 Disassembles only the named function in each object file specified on the
73 command line. The \fB-F\fR option can be specified multiple times on the
80 \fB\fB-l\fR \fIstring\fR\fR
83 Disassembles the archive file specified by \fIstring\fR. For example, one would
84 issue the command \fBdis\fR \fB-l\fR \fBx\fR \fB-l\fR \fBz\fR to disassemble
85 \fBlibx.a\fR and \fBlibz.a\fR, which are assumed to be in \fBLIBDIR\fR.
87 This option is obsolete and might be removed in a future release of Solaris.
96 Invokes a lookup of C-language source labels in the symbol table for subsequent
97 writing to standard output.
99 This option is obsolete and might be removed in a future release of Solaris.
108 Displays all addresses numerically. Addresses are displayed using symbolic
118 Prints numbers in octal. The default is hexadecimal.
127 Quiet mode. Does not print any headers or function entry labels.
133 \fB\fB-t\fR \fIsec\fR\fR
136 Disassembles the named section as text.
145 Prints, on standard error, the version number of the disassembler being
148 This option is obsolete and might be removed in a future release of Solaris.
153 If the \fB-d\fR, \fB-D\fR, or \fB-t\fR options are specified, only those named
154 sections from each user-supplied file is disassembled. Otherwise, all sections
155 containing text is disassembled.
158 On output, a number enclosed in brackets at the beginning of a line, such as
159 \fB[5]\fR, indicates that the break-pointable line number starts with the
160 following instruction. These line numbers is printed only if the file was
161 compiled with additional debugging information.
165 The following operand is supported:
172 A path name of an object file or an archive (see \fBar\fR(1)) of object files.
175 .SH ENVIRONMENT VARIABLES
178 See \fBenviron\fR(5) for descriptions of the following environment variables
179 that affect the execution of \fBdis\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and
187 If this environment variable contains a value, use this as the path to search
188 for the library. If the variable contains a null value, or is not set, it
189 defaults to searching for the library under \fB/usr/lib\fR.
195 The following exit values are returned:
202 Successful completion.
227 See \fBattributes\fR(5) for descriptions of the following attributes:
235 ATTRIBUTE TYPE ATTRIBUTE VALUE
237 Interface Stability See below.
242 The human readable output is Uncommitted. The command line options are
247 \fBar\fR(1), \fBas\fR(1), \fBld\fR(1), \fBa.out\fR(4), \fBattributes\fR(5),
252 The self-explanatory diagnostics indicate errors in the command line or
253 problems encountered with the specified files.