1NM(1) General Commands Manual NM(1)
2
3
4
6 nm - print name list
7
9 nm [ -gnopru ] [ file ... ]
10
12 Nm prints the name list (symbol table) of each object file in the argu‐
13 ment list. If an argument is an archive, a listing for each object
14 file in the archive will be produced. If no file is given, the symbols
15 in `a.out' are listed.
16
17 Each symbol name is preceded by its value (blanks if undefined) and one
18 of the letters U (undefined), A (absolute), T (text segment symbol), D
19 (data segment symbol), B (bss segment symbol), or C (common symbol).
20 If the symbol is local (non-external) the type letter is in lower case.
21 The output is sorted alphabetically.
22
23 Options are:
24
25 -g Print only global (external) symbols.
26
27 -n Sort numerically rather than alphabetically.
28
29 -o Prepend file or archive element name to each output line rather
30 than only once.
31
32 -p Don't sort; print in symbol-table order.
33
34 -r Sort in reverse order.
35
36 -u Print only undefined symbols.
37
39 ar(1), ar(5), a.out(5)
40
41
42
43 NM(1)