BSD 1 development
[unix-history] / man6 / nm.6
CommitLineData
1461535a
BJ
1.th NM VI 8/24/77
2.sh NAME
3nm \- print name list
4.sh SYNOPSIS
5.bd nm
6[
7.bd \-cnrupg
8]
9[ name ... ]
10.sh DESCRIPTION
11.it Nm
12prints the symbol table from the output file of an
13assembler or loader run.
14Each symbol name is preceded by its value (blanks if undefined)
15and one of the letters \fBU\fR (undefined) \fBA\fR (absolute) \fBT\fR
16(text segment symbol),
17\fBD\fR (data segment symbol), \fBB\fR
18(bss segment symbol),
19or \fBC\fR (common symbol).
20If the symbol is local (non-external)
21the type letter is in lower case.
22The output is sorted alphabetically.
23.s3
24If no file is given, the symbols in
25.it a.out
26are listed.
27If more than one file is given, each file name is printed preceding
28the name list.
29The ability to
30.it nm
31multiple files is most useful with the options
32.bd \-c
33or
34.bd \-u.
35.s3
36Options are:
37.s3
38.lp +4 4
39\fB\-c\fR list only C-style external symbols, that is
40those beginning with underscore `\*_'.
41.s3
42.lp +4 4
43\fB\-g\fR print only global (external) symbols
44.s3
45.lp +4 4
46\fB\-n\fR sort by value instead of by name
47.s3
48.lp +4 4
49\fB\-p\fR don't sort; print in symbol-table order
50.s3
51.lp +4 4
52\fB\-r\fR sort in reverse order
53.s3
54.lp +4 4
55\fB\-u\fR print only undefined symbols.
56.i0
57.sh FILES
58a.out
59.sh BUGS