* ieee.c: Extensive changes to write code to put types in the
[deliverable/binutils-gdb.git] / binutils / nm.1
CommitLineData
503b9350
RP
1.\" Copyright (c) 1991 Free Software Foundation
2.\" See section COPYING for conditions for redistribution
503b9350
RP
3.TH nm 1 "5 November 1991" "cygnus support" "GNU Development Tools"
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
938fa52b 11nm \- list symbols from object files.
503b9350
RP
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
17.B nm
1f72cab1
DM
18.RB "[\|" \-a | \-\-debug\-syms "\|]"
19.RB "[\|" \-g | \-\-extern\-only "\|]"
d6a4c375
DM
20.RB "[\|" \-B "\|]"
21.RB "[\|" \-C | \-\-demangle "\|]"
de3b08ac 22.RB "[\|" \-D | \-\-dynamic "\|]"
1f72cab1
DM
23.RB "[\|" \-s | \-\-print\-armap "\|]"
24.RB "[\|" \-o | \-\-print\-file\-name "\|]"
25.RB "[\|" \-n | \-\-numeric\-sort "\|]"
26.RB "[\|" \-p | \-\-no\-sort "\|]"
27.RB "[\|" \-r | \-\-reverse\-sort "\|]"
1896790e 28.RB "[\|" \-\-size\-sort "\|]"
1f72cab1 29.RB "[\|" \-u | \-\-undefined\-only "\|]"
b26ac613
DM
30.RB "[\|" \-\-help "\|]"
31.RB "[\|" \-\-version "\|]"
32.RB "[\|" "\-t \fIradix" | \-\-radix=\fIradix "\|]"
33.RB "[\|" \-P | --portability "\|]"
34.RB "[\|" "\-f \fIformat" | \-\-format=\fIformat "\|]"
35.RB "[\|" "\-\-target=\fIbfdname" "\|]"
503b9350 36.RB "[\|" \c
1f72cab1 37.I objfile\c
503b9350
RP
38\&.\|.\|.\|]
39.ad b
40.hy 1
41.SH DESCRIPTION
42GNU \c
43.B nm\c
b26ac613 44\& lists the symbols from object files \c
1f72cab1 45.I objfile\c
b26ac613
DM
46\&. If no object files are given as arguments, \c
47.B nm\c
48\& assumes `\|\c
49.B a.out\c
50\|'.
503b9350
RP
51
52.SH OPTIONS
53The long and short forms of options, shown here as alternatives, are
54equivalent.
55
56.TP
b26ac613
DM
57.B \-A
58.TP
59.B \-o
60.TP
61.B \-\-print\-file\-name
62Precede each symbol by the name of the input file where it was found,
63rather than identifying the input file once only before all of its
64symbols.
503b9350
RP
65
66.TP
67.B \-a
68.TP
1f72cab1 69.B \-\-debug\-syms
503b9350
RP
70Display debugger-only symbols; normally these are not listed.
71
68dd5295
DM
72.TP
73.B \-B
74The same as
75.B \-\-format=bsd
76(for compatibility with the MIPS \fBnm\fP).
77
d6a4c375
DM
78.TP
79.B \-C
80.TP
81.B \-\-demangle
82Decode (\fIdemangle\fP) low-level symbol names into user-level names.
83Besides removing any initial underscore prepended by the system, this
84makes C++ function names readable.
85
de3b08ac
ILT
86.TP
87.B \-D
88.TP
89.B \-\-dynamic
90Display the dynamic symbols rather than the normal symbols. This is
91only meaningful for dynamic objects, such as certain types of shared
92libraries.
93
b26ac613
DM
94.TP
95.B "\-f \fIformat"
96Use the output format \fIformat\fP, which can be ``bsd'',
5740d9df 97``sysv'', or ``posix''. The default is ``bsd''.
b26ac613
DM
98Only the first character of \fIformat\fP is significant; it can be
99either upper or lower case.
100
503b9350
RP
101.TP
102.B \-g
103.TP
1f72cab1 104.B \-\-extern\-only
503b9350
RP
105Display only external symbols.
106
b26ac613
DM
107.TP
108.B \-n
109.TP
110.B \-v
111.TP
112.B \-\-numeric\-sort
113Sort symbols numerically by their addresses, not alphabetically by their
114names.
115
503b9350
RP
116.TP
117.B \-p
118.TP
1f72cab1 119.B \-\-no\-sort
503b9350
RP
120Don't bother to sort the symbols in any order; just print them in the
121order encountered.
122
123.TP
b26ac613 124.B \-P
503b9350 125.TP
b26ac613
DM
126.B \-\-portability
127Use the POSIX.2 standard output format instead of the default format.
128Equivalent to ``\-f posix''.
503b9350
RP
129
130.TP
131.B \-s
132.TP
1f72cab1 133.B \-\-print\-armap
503b9350
RP
134When listing symbols from archive members, include the index: a mapping
135(stored in the archive by \c
136.B ar\c
137\& or \c
138.B ranlib\c
139\&) of what modules
140contain definitions for what names.
141
503b9350
RP
142.TP
143.B \-r
144.TP
1f72cab1 145.B \-\-reverse\-sort
503b9350
RP
146Reverse the sense of the sort (whether numeric or alphabetic); let the
147last come first.
148
1896790e
ILT
149.TP
150.B \-\-size\-sort
151Sort symbols by size. The size is computed as the difference between
152the value of the symbol and the value of the symbol with the next higher
153value. The size of the symbol is printed, rather than the value.
154
503b9350 155.TP
b26ac613
DM
156.B "\-t \fIradix"
157.TP
158.B "\-\-radix=\fIradix"
159Use \fIradix\fP as the radix for printing the symbol values. It must be
160``d'' for decimal, ``o'' for octal, or ``x'' for hexadecimal.
161
162.TP
5740d9df 163.BI "\-\-target=" "bfdname"
503b9350
RP
164Specify an object code format other than your system's default format.
165See
166.BR objdump ( 1 ),
167for information on listing available formats.
168
169.TP
170.B \-u
171.TP
1f72cab1 172.B \-\-undefined\-only
503b9350
RP
173Display only undefined symbols (those external to each object file).
174
b26ac613
DM
175.TP
176.B \-V
177.TP
178.B \-\-version
179Show the version number of
180.B nm
181and exit.
182
183.TP
184.B \-\-help
185Show a summary of the options to
186.B nm
187and exit.
503b9350
RP
188
189.SH "SEE ALSO"
190.RB "`\|" binutils "\|'"
191entry in
192.B
193info\c
194\&;
195.I
196The GNU Binary Utilities\c
197\&, Roland H. Pesch (October 1991);
198.BR ar "(" 1 "),"
199.BR objdump ( 1 ),
200.BR ranlib "(" 1 ")."
201
202
203.SH COPYING
204Copyright (c) 1991 Free Software Foundation, Inc.
205.PP
206Permission is granted to make and distribute verbatim copies of
207this manual provided the copyright notice and this permission notice
208are preserved on all copies.
209.PP
210Permission is granted to copy and distribute modified versions of this
211manual under the conditions for verbatim copying, provided that the
212entire resulting derived work is distributed under the terms of a
213permission notice identical to this one.
214.PP
215Permission is granted to copy and distribute translations of this
216manual into another language, under the above conditions for modified
217versions, except that this permission notice may be included in
218translations approved by the Free Software Foundation instead of in
219the original English.
This page took 0.150669 seconds and 4 git commands to generate.