1BSD/man6/nm.6

Compare this file to the similar file:
Show the results in this format:

.th NM VI 8/24/77
.sh NAME
nm \- print name list
.sh SYNOPSIS
.bd nm
[
.bd \-cnrupg
]
[ name ... ]
.sh DESCRIPTION
.it Nm
prints the symbol table from the output file of an
assembler or loader run.
Each symbol name is preceded by its value (blanks if undefined)
and one of the letters \fBU\fR (undefined) \fBA\fR (absolute) \fBT\fR
(text segment symbol),
\fBD\fR (data segment symbol), \fBB\fR
(bss segment symbol),
or \fBC\fR (common symbol).
If the symbol is local (non-external)
the type letter is in lower case.
The output is sorted alphabetically.
.s3
If no file is given, the symbols in
.it a.out
are listed.
If more than one file is given, each file name is printed preceding
the name list.
The ability to
.it nm
multiple files is most useful with the options
.bd \-c
or
.bd \-u.
.s3
Options are:
.s3
.lp +4 4
\fB\-c\fR	list only C-style external symbols, that is
those beginning with underscore `\*_'.
.s3
.lp +4 4
\fB\-g\fR	print only global (external) symbols
.s3
.lp +4 4
\fB\-n\fR	sort by value instead of by name
.s3
.lp +4 4
\fB\-p\fR	don't sort; print in symbol-table order
.s3
.lp +4 4
\fB\-r\fR	sort in reverse order
.s3
.lp +4 4
\fB\-u\fR	print only undefined symbols.
.i0
.sh FILES
a.out
.sh BUGS