Research V6 release
[unix-history] / usr / doc / man / man1 / nm.1
CommitLineData
b9749db3
DR
1.th NM I 8/20/73
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.bd a.out
26are listed.
27.s3
28Options are:
29.s3
30.lp +4 4
31\fB\-c\fR list only C-style external symbols, that is
32those beginning with underscore `\*_'.
33.s3
34.lp +4 4
35\fB\-g\fR print only global (external) symbols
36.s3
37.lp +4 4
38\fB\-n\fR sort by value instead of by name
39.s3
40.lp +4 4
41\fB\-p\fR don't sort; print in symbol-table order
42.s3
43.lp +4 4
44\fB\-r\fR sort in reverse order
45.s3
46.lp +4 4
47\fB\-u\fR print only undefined symbols.
48.i0
49.sh FILES
50a.out
51.sh BUGS