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