Commit | Line | Data |
---|---|---|
1461535a BJ |
1 | .th NM VI 8/24/77 |
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 | .it a.out | |
26 | are listed. | |
27 | If more than one file is given, each file name is printed preceding | |
28 | the name list. | |
29 | The ability to | |
30 | .it nm | |
31 | multiple files is most useful with the options | |
32 | .bd \-c | |
33 | or | |
34 | .bd \-u. | |
35 | .s3 | |
36 | Options are: | |
37 | .s3 | |
38 | .lp +4 4 | |
39 | \fB\-c\fR list only C-style external symbols, that is | |
40 | those 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 | |
58 | a.out | |
59 | .sh BUGS |