NM(1) COMMAND REFERENCE NM(1)
NAME
nm - print name list
SYNOPSIS
nm [ -a ] [ -g ] [ -n ] [ -o ] [ -p ] [ -r ] [ -u ] [
filename ... ]
DESCRIPTION
Nm prints the name list (symbol table) of each object file
in the argument list. If an argument is an archive, a
listing for each object file in the archive will be
produced. If no filename is given, the symbols in a.out are
listed.
Each symbol name is preceded by its value (blanks if
undefined) and one of the letters U (undefined), A
(absolute), T (text segment symbol), D (data segment
symbol), B (bss segment symbol), C (common symbol), f file
name, or - for sdb(1) symbol table entries (see -a below).
If the symbol is local (non-external) the type letter is in
lower case. The output is sorted alphabetically.
Nm works with both long and short format archive files.
OPTIONS
-a Print sdb(1) symbol table entries. Normally, these
entries are not listed.
-g Print only global (external) symbols.
-n Sort numerically rather than alphabetically.
-o Prepend file or archive element name to each output line
rather than only once.
-p Don't sort; print in symbol-table order.
-r Sort in reverse order.
-u Print only undefined symbols.
EXAMPLES
nm -u
prints only the undefined symbols in a.out, the default
output file for the C compiler.
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
Printed 4/6/89 1
NM(1) COMMAND REFERENCE NM(1)
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
SEE ALSO
ar(1), sdb(1), ar(5), a.out(5), and stab(5).
Printed 4/6/89 2
%%index%%
na:192,72;
sy:264,346;
de:610,1044;
op:1654,638;
ex:2292,213;
rv:2505,270;3039,565;
se:3604,205;
%%index%%000000000130