Commit | Line | Data |
---|---|---|
28b214ee C |
1 | NM(1) BSD Reference Manual NM(1) |
2 | ||
3 | N\bNA\bAM\bME\bE | |
4 | n\bnm\bm - display name list (symbol table) | |
5 | ||
6 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
7 | n\bnm\bm [-\b-a\bag\bgn\bno\bop\bpr\bru\buw\bw] _\bf_\bi_\bl_\be _\b._\b._\b. | |
8 | ||
9 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
10 | The symbol table (name list) of each object in _\bf_\bi_\bl_\be_\b(_\bs_\b) is displayed. If | |
11 | a library (archive) is given, n\bnm\bm displays a list for each object archive | |
12 | member. If _\bf_\bi_\bl_\be is not present, n\bnm\bm searches for the file _\ba_\b._\bo_\bu_\bt and if | |
13 | present, displays the symbol table for _\ba_\b._\bo_\bu_\bt. | |
14 | ||
15 | -\b-a\ba Display symbol table entries inserted for use by debuggers. | |
16 | ||
17 | -\b-g\bg Restrict display to external (global) symbols. | |
18 | ||
19 | -\b-n\bn Present results in numerical order. | |
20 | ||
21 | -\b-o\bo Display full path or library name of object on every line. | |
22 | ||
23 | -\b-p\bp Do not sort at all. | |
24 | ||
25 | -\b-r\br Reverse order sort. | |
26 | ||
27 | -\b-u\bu Display undefined symbols only. | |
28 | ||
29 | -\b-w\bw Warn about non-object archive members. Normally, nm will silently | |
30 | ignore all archive members which are not object files. | |
31 | ||
32 | Each symbol name is preceded by its value (a blank field if the symbol is | |
33 | undefined) and one of the following letters: | |
34 | ||
35 | -\b- debugger symbol table entries (see the -\b-a\ba option). | |
36 | A absolute | |
37 | B bss segment symbol | |
38 | C common symbol | |
39 | D data segment symbol | |
40 | f file name | |
41 | T text segment symbol | |
42 | U undefined | |
43 | ||
44 | If the symbol is local (non-external) the type letter is in lower case. | |
45 | The output is sorted alphabetically. | |
46 | ||
47 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
48 | ar(1), ar(5), a.out(5), stab(5) | |
49 | ||
50 | H\bHI\bIS\bST\bTO\bOR\bRY\bY | |
51 | An n\bnm\bm command appeared in Version 6 AT&T UNIX. | |
52 | ||
53 | 4th Berkeley Distribution June 6, 1993 1 |