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