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 "[\|" \-l | \-\-line\-numbers "\|]"
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" "\|]"
45 \& lists the symbols from object files \c
47 \&. If no object files are given as arguments, \c
54 The long and short forms of options, shown here as alternatives, are
62 .B \-\-print\-file\-name
63 Precede each symbol by the name of the input file where it was found,
64 rather than identifying the input file once only before all of its
71 Display debugger-only symbols; normally these are not listed.
77 (for compatibility with the MIPS \fBnm\fP).
83 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
84 Besides removing any initial underscore prepended by the system, this
85 makes C++ function names readable.
91 Display the dynamic symbols rather than the normal symbols. This is
92 only meaningful for dynamic objects, such as certain types of shared
97 Use the output format \fIformat\fP, which can be ``bsd'',
98 ``sysv'', or ``posix''. The default is ``bsd''.
99 Only the first character of \fIformat\fP is significant; it can be
100 either upper or lower case.
106 Display only external symbols.
114 Sort symbols numerically by their addresses, not alphabetically by their
121 Don't bother to sort the symbols in any order; just print them in the
128 Use the POSIX.2 standard output format instead of the default format.
129 Equivalent to ``\-f posix''.
135 When listing symbols from archive members, include the index: a mapping
136 (stored in the archive by \c
141 contain definitions for what names.
147 Reverse the sense of the sort (whether numeric or alphabetic); let the
152 Sort symbols by size. The size is computed as the difference between
153 the value of the symbol and the value of the symbol with the next higher
154 value. The size of the symbol is printed, rather than the value.
159 .B "\-\-radix=\fIradix"
160 Use \fIradix\fP as the radix for printing the symbol values. It must be
161 ``d'' for decimal, ``o'' for octal, or ``x'' for hexadecimal.
164 .BI "\-\-target=" "bfdname"
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 For each symbol, use debugging information to try to find a filename and
181 line number. For a defined symbol, look for the line number of the
182 address of the symbol. For an undefined symbol, look for the line
183 number of a relocation entry which refers to the symbol. If line number
184 information can be found, print it after the other symbol information.
190 Show the version number of
196 Show a summary of the options to
201 .RB "`\|" binutils "\|'"
207 The GNU Binary Utilities\c
208 \&, Roland H. Pesch (October 1991);
211 .BR ranlib "(" 1 ")."
215 Copyright (c) 1991 Free Software Foundation, Inc.
217 Permission is granted to make and distribute verbatim copies of
218 this manual provided the copyright notice and this permission notice
219 are preserved on all copies.
221 Permission is granted to copy and distribute modified versions of this
222 manual under the conditions for verbatim copying, provided that the
223 entire resulting derived work is distributed under the terms of a
224 permission notice identical to this one.
226 Permission is granted to copy and distribute translations of this
227 manual into another language, under the above conditions for modified
228 versions, except that this permission notice may be included in
229 translations approved by the Free Software Foundation instead of in
230 the original English.