6001 strcat(9f) needs a manpage
[unleashed.git] / usr / src / man / man1 / dis.1
blob9580ec78a2e26a753b6bed2155adeac418b5f488
1 '\" te
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"
14 .SH NAME
15 dis \- object code disassembler
16 .SH SYNOPSIS
17 .LP
18 .nf
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...
21 .fi
23 .SH DESCRIPTION
24 .sp
25 .LP
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.
30 .SH OPTIONS
31 .sp
32 .LP
33 Options are interpreted by the disassembler and can be specified in any order.
34 .sp
35 .LP
36 The following options are supported:
37 .sp
38 .ne 2
39 .na
40 \fB\fB-C\fR\fR
41 .ad
42 .RS 15n
43 Displays demangled C++ symbol names in the disassembly.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fB-d\fR \fIsec\fR\fR
50 .ad
51 .RS 15n
52 Disassembles the named section as data, printing the offset of the data from
53 the beginning of the section.
54 .RE
56 .sp
57 .ne 2
58 .na
59 \fB\fB-D\fR \fIsec\fR\fR
60 .ad
61 .RS 15n
62 Disassembles the named section as data, printing the actual address of the
63 data.
64 .RE
66 .sp
67 .ne 2
68 .na
69 \fB\fB-F\fR \fIfunction\fR\fR
70 .ad
71 .RS 15n
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
74 command line.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fB-l\fR \fIstring\fR\fR
81 .ad
82 .RS 15n
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.
86 .sp
87 This option is obsolete and might be removed in a future release of Solaris.
88 .RE
90 .sp
91 .ne 2
92 .na
93 \fB\fB-L\fR\fR
94 .ad
95 .RS 15n
96 Invokes a lookup of C-language source labels in the symbol table for subsequent
97 writing to standard output.
98 .sp
99 This option is obsolete and might be removed in a future release of Solaris.
103 .ne 2
105 \fB\fB-n\fR\fR
107 .RS 15n
108 Displays all addresses numerically. Addresses are displayed using symbolic
109 names by default.
113 .ne 2
115 \fB\fB-o\fR\fR
117 .RS 15n
118 Prints numbers in octal. The default is hexadecimal.
122 .ne 2
124 \fB\fB-q\fR\fR
126 .RS 15n
127 Quiet mode.  Does not print any headers or function entry labels.
131 .ne 2
133 \fB\fB-t\fR \fIsec\fR\fR
135 .RS 15n
136 Disassembles the named section as text.
140 .ne 2
142 \fB\fB-V\fR\fR
144 .RS 15n
145 Prints, on standard error, the version number of the disassembler being
146 executed.
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.
162 .SH OPERANDS
165 The following operand is supported:
167 .ne 2
169 \fB\fIfile\fR\fR
171 .RS 8n
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
180 \fBNLSPATH\fR.
182 .ne 2
184 \fB\fBLIBDIR\fR\fR
186 .RS 10n
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.
192 .SH EXIT STATUS
195 The following exit values are returned:
197 .ne 2
199 \fB\fB0\fR\fR
201 .RS 6n
202 Successful completion.
206 .ne 2
208 \fB\fB>0\fR\fR
210 .RS 6n
211 An error occurred.
214 .SH FILES
216 .ne 2
218 \fB\fB/usr/lib\fR\fR
220 .RS 12n
221 default \fBLIBDIR\fR
224 .SH ATTRIBUTES
227 See \fBattributes\fR(5) for descriptions of the following attributes:
232 box;
233 c | c
234 l | l .
235 ATTRIBUTE TYPE  ATTRIBUTE VALUE
237 Interface Stability     See below.
242 The human readable output is Uncommitted. The command line options are
243 Committed.
244 .SH SEE ALSO
247 \fBar\fR(1), \fBas\fR(1), \fBld\fR(1), \fBa.out\fR(4), \fBattributes\fR(5),
248 \fBenviron\fR(5)
249 .SH DIAGNOSTICS
252 The self-explanatory diagnostics indicate errors in the command line or
253 problems encountered with the specified files.