Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1980, 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
a689557b | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
a689557b | 5 | .\" |
5325ced3 | 6 | .\" @(#)nm.1 6.4 (Berkeley) %G% |
b5dc1377 CL |
7 | .\" |
8 | .Dd | |
9 | .Dt NM 1 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm nm | |
13 | .Nd display name list (symbol table) | |
14 | .Sh SYNOPSIS | |
15 | .Nm nm | |
16 | .Op Fl agnopruw | |
17 | .Ar | |
18 | .Sh DESCRIPTION | |
19 | The symbol table (name list) of each object in | |
20 | .Ar file(s) | |
21 | is displayed. | |
22 | If a library (archive) is given, | |
23 | .Nm | |
24 | displays a list for each | |
25 | object archive member. | |
26 | If | |
27 | .Ar file | |
28 | is not present, | |
29 | .Nm | |
30 | searches for the file | |
31 | .Pa a.out | |
32 | and if present, displays the symbol | |
33 | table for | |
34 | .Pa a.out . | |
35 | .Pp | |
36 | .Tp Fl a | |
37 | Display symbol table entries inserted for use by debuggers. | |
38 | .Tp Fl g | |
39 | Restrict display to external (global) symbols. | |
40 | .Tp Fl n | |
41 | Present results in numerical order. | |
42 | .Tp Fl o | |
43 | Display full path or library name of object on every line. | |
44 | .Tp Fl p | |
45 | Do not sort at all. | |
46 | .Tp Fl r | |
47 | Reverse order sort. | |
48 | .Tp Fl u | |
49 | Display undefined symbols only. | |
50 | .Tp Fl w | |
6820c751 KB |
51 | Warn about non-object archive members. |
52 | Normally, nm will silently ignore all archive members which are not | |
53 | object files. | |
b5dc1377 CL |
54 | .Tp |
55 | .Pp | |
6820c751 KB |
56 | Each symbol name is preceded by its value (a blank field if the symbol |
57 | is undefined) and one of the following letters: | |
b5dc1377 CL |
58 | .Tw Ds |
59 | .Tp Fl | |
6820c751 | 60 | debugger symbol table entries (see the |
b5dc1377 | 61 | .Fl a |
6820c751 | 62 | option). |
b5dc1377 | 63 | .Tp Li A |
6820c751 | 64 | absolute |
b5dc1377 | 65 | .Tp Li B |
6820c751 | 66 | bss segment symbol |
b5dc1377 | 67 | .Tp Li C |
6820c751 | 68 | common symbol |
b5dc1377 | 69 | .Tp Li D |
6820c751 | 70 | data segment symbol |
b5dc1377 | 71 | .Tp Li f |
6820c751 | 72 | file name |
b5dc1377 | 73 | .Tp Li T |
6820c751 | 74 | text segment symbol |
b5dc1377 | 75 | .Tp Li U |
6820c751 | 76 | undefined |
b5dc1377 CL |
77 | .Tp |
78 | .Pp | |
6820c751 KB |
79 | If the symbol is local (non-external) the type letter is in lower case. |
80 | The output is sorted alphabetically. | |
b5dc1377 CL |
81 | .Sh SEE ALSO |
82 | .Xr ar 1 , | |
83 | .Xr ar 5 , | |
84 | .Xr a.out 5 , | |
85 | .Xr stab 5 | |
86 | .Sh HISTORY | |
87 | .Nm Nm | |
88 | appeared in Version 6 AT&T UNIX. |