Works again.
[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 "\|]"
20.RB "[\|" \-s | \-\-print\-armap "\|]"
21.RB "[\|" \-o | \-\-print\-file\-name "\|]"
22.RB "[\|" \-n | \-\-numeric\-sort "\|]"
23.RB "[\|" \-p | \-\-no\-sort "\|]"
24.RB "[\|" \-r | \-\-reverse\-sort "\|]"
25.RB "[\|" \-u | \-\-undefined\-only "\|]"
26.RB "[\|" "\-\-target="\c
503b9350
RP
27.I bfdname\c
28\&\|]
29.RB "[\|" \c
1f72cab1 30.I objfile\c
503b9350
RP
31\&.\|.\|.\|]
32.ad b
33.hy 1
34.SH DESCRIPTION
35GNU \c
36.B nm\c
37\& will list the symbols from object files \c
1f72cab1 38.I objfile\c
503b9350
RP
39\&.
40
41.SH OPTIONS
42The long and short forms of options, shown here as alternatives, are
43equivalent.
44
45.TP
1f72cab1 46.IR "objfile" .\|.\|.
503b9350
RP
47Object files whose symbols are to be listed. If no object files are
48listed as arguments, \c
49.B nm\c
50\& assumes `\|\c
51.B a.out\c
52\|'.
53
54.TP
55.B \-a
56.TP
1f72cab1 57.B \-\-debug\-syms
503b9350
RP
58Display debugger-only symbols; normally these are not listed.
59
60.TP
61.B \-g
62.TP
1f72cab1 63.B \-\-extern\-only
503b9350
RP
64Display only external symbols.
65
66.TP
67.B \-p
68.TP
1f72cab1 69.B \-\-no\-sort
503b9350
RP
70Don't bother to sort the symbols in any order; just print them in the
71order encountered.
72
73.TP
74.B \-n
75.TP
1f72cab1 76.B \-\-numeric\-sort
503b9350
RP
77Sort symbols numerically by their addresses, not alphabetically by their
78names.
79
80.TP
81.B \-s
82.TP
1f72cab1 83.B \-\-print\-armap
503b9350
RP
84When listing symbols from archive members, include the index: a mapping
85(stored in the archive by \c
86.B ar\c
87\& or \c
88.B ranlib\c
89\&) of what modules
90contain definitions for what names.
91
92.TP
93.B \-o
94.TP
1f72cab1 95.B \-\-print\-file\-name
503b9350
RP
96Precede each symbol by the name of the input file where it was found,
97rather than identifying the input file once only before all of its
98symbols.
99
100.TP
101.B \-r
102.TP
1f72cab1 103.B \-\-reverse\-sort
503b9350
RP
104Reverse the sense of the sort (whether numeric or alphabetic); let the
105last come first.
106
107.TP
1f72cab1 108.BI "\-\-target " "bfdname"\c
503b9350
RP
109\&
110Specify an object code format other than your system's default format.
111See
112.BR objdump ( 1 ),
113for information on listing available formats.
114
115.TP
116.B \-u
117.TP
1f72cab1 118.B \-\-undefined\-only
503b9350
RP
119Display only undefined symbols (those external to each object file).
120
121.PP
122
123.SH "SEE ALSO"
124.RB "`\|" binutils "\|'"
125entry in
126.B
127info\c
128\&;
129.I
130The GNU Binary Utilities\c
131\&, Roland H. Pesch (October 1991);
132.BR ar "(" 1 "),"
133.BR objdump ( 1 ),
134.BR ranlib "(" 1 ")."
135
136
137.SH COPYING
138Copyright (c) 1991 Free Software Foundation, Inc.
139.PP
140Permission is granted to make and distribute verbatim copies of
141this manual provided the copyright notice and this permission notice
142are preserved on all copies.
143.PP
144Permission is granted to copy and distribute modified versions of this
145manual under the conditions for verbatim copying, provided that the
146entire resulting derived work is distributed under the terms of a
147permission notice identical to this one.
148.PP
149Permission is granted to copy and distribute translations of this
150manual into another language, under the above conditions for modified
151versions, except that this permission notice may be included in
152translations approved by the Free Software Foundation instead of in
153the original English.
This page took 0.079314 seconds and 4 git commands to generate.