Commit | Line | Data |
---|---|---|
b9749db3 DR |
1 | .th NM I 8/20/73 |
2 | .sh NAME | |
3 | nm \*- print name list | |
4 | .sh SYNOPSIS | |
5 | .bd nm | |
6 | [ | |
7 | .bd \-cnrupg | |
8 | ] | |
9 | [ name ] | |
10 | .sh DESCRIPTION | |
11 | .it Nm | |
12 | prints the symbol table from the output file of an | |
13 | assembler or loader run. | |
14 | Each symbol name is preceded by its value (blanks if undefined) | |
15 | and 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), | |
19 | or \fBC\fR (common symbol). | |
20 | If the symbol is local (non-external) | |
21 | the type letter is in lower case. | |
22 | The output is sorted alphabetically. | |
23 | .s3 | |
24 | If no file is given, the symbols in | |
25 | .bd a.out | |
26 | are listed. | |
27 | .s3 | |
28 | Options are: | |
29 | .s3 | |
30 | .lp +4 4 | |
31 | \fB\-c\fR list only C-style external symbols, that is | |
32 | those 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 | |
50 | a.out | |
51 | .sh BUGS |