BSD 4_2 development
[unix-history] / usr / man / man1 / nm.1
CommitLineData
c760bccd
C
1.TH NM 1 "7 February 1983"
2.UC 4
3.SH NAME
4nm \- print name list
5.SH SYNOPSIS
6.B nm
7[
8.B \-gnopru
9]
10[ file ... ]
11.SH DESCRIPTION
12.I Nm
13prints the name list (symbol table) of each object
14.I file
15in the argument list. If an argument is an archive, a listing for each object
16file in the archive will be produced. If no
17.I file
18is given, the symbols in "a.out" are listed.
19.PP
20Each symbol name is preceded by its value (blanks if undefined)
21and one of the letters
22.SM
23.B U
24(undefined),
25.SM
26.B A
27(absolute),
28.SM
29.B T
30(text segment symbol),
31.SM
32.B D
33(data segment symbol),
34.SM
35.B B
36(bss segment symbol),
37.SM
38.B C
39(common symbol),
40.SM
41.B f
42file name,
43or
44.B \-
45for sdb symbol table entries (see
46.B \-a
47below).
48If the symbol is local (non-external) the type letter is in lower case.
49The output is sorted alphabetically.
50.PP
51Options are:
52.TP
53.B \-g
54Print only global (external) symbols.
55.TP
56.B \-n
57Sort numerically rather than alphabetically.
58.TP
59.B \-o
60Prepend file or archive element name to each output line rather than only once.
61.TP
62.B \-p
63Don't sort; print in symbol-table order.
64.TP
65.B \-r
66Sort in reverse order.
67.TP
68.B \-u
69Print only undefined symbols.
70.SH SEE ALSO
71ar(1), ar(5), a.out(5), stab(5)