1 .\" Copyright (c) 1991 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH nm 1 "5 November 1991" "cygnus support" "GNU Development Tools"
11 nm \- list symbols from object files.
18 .RB "[\|" \-a | \-\-debug\-syms "\|]"
19 .RB "[\|" \-g | \-\-extern\-only "\|]"
21 .RB "[\|" \-C | \-\-demangle "\|]"
22 .RB "[\|" \-D | \-\-dynamic "\|]"
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 "\|]"
28 .RB "[\|" \-\-size\-sort "\|]"
29 .RB "[\|" \-u | \-\-undefined\-only "\|]"
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" "\|]"
44 \& lists the symbols from object files \c
46 \&. If no object files are given as arguments, \c
53 The long and short forms of options, shown here as alternatives, are
61 .B \-\-print\-file\-name
62 Precede each symbol by the name of the input file where it was found,
63 rather than identifying the input file once only before all of its
70 Display debugger-only symbols; normally these are not listed.
76 (for compatibility with the MIPS \fBnm\fP).
82 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
83 Besides removing any initial underscore prepended by the system, this
84 makes C++ function names readable.
90 Display the dynamic symbols rather than the normal symbols. This is
91 only meaningful for dynamic objects, such as certain types of shared
96 Use the output format \fIformat\fP, which can be ``bsd'',
97 ``sysv'', or ``posix''. The default is `bsd''.
98 Only the first character of \fIformat\fP is significant; it can be
99 either upper or lower case.
105 Display only external symbols.
113 Sort symbols numerically by their addresses, not alphabetically by their
120 Don't bother to sort the symbols in any order; just print them in the
127 Use the POSIX.2 standard output format instead of the default format.
128 Equivalent to ``\-f posix''.
134 When listing symbols from archive members, include the index: a mapping
135 (stored in the archive by \c
140 contain definitions for what names.
146 Reverse the sense of the sort (whether numeric or alphabetic); let the
151 Sort symbols by size. The size is computed as the difference between
152 the value of the symbol and the value of the symbol with the next higher
153 value. The size of the symbol is printed, rather than the value.
158 .B "\-\-radix=\fIradix"
159 Use \fIradix\fP as the radix for printing the symbol values. It must be
160 ``d'' for decimal, ``o'' for octal, or ``x'' for hexadecimal.
163 .BI "\-\-target=" "bfdname"\c
165 Specify an object code format other than your system's default format.
168 for information on listing available formats.
173 .B \-\-undefined\-only
174 Display only undefined symbols (those external to each object file).
180 Show the version number of
186 Show a summary of the options to
191 .RB "`\|" binutils "\|'"
197 The GNU Binary Utilities\c
198 \&, Roland H. Pesch (October 1991);
201 .BR ranlib "(" 1 ")."
205 Copyright (c) 1991 Free Software Foundation, Inc.
207 Permission is granted to make and distribute verbatim copies of
208 this manual provided the copyright notice and this permission notice
209 are preserved on all copies.
211 Permission is granted to copy and distribute modified versions of this
212 manual under the conditions for verbatim copying, provided that the
213 entire resulting derived work is distributed under the terms of a
214 permission notice identical to this one.
216 Permission is granted to copy and distribute translations of this
217 manual into another language, under the above conditions for modified
218 versions, except that this permission notice may be included in
219 translations approved by the Free Software Foundation instead of in
220 the original English.