1NM(1)                       General Commands Manual                      NM(1)
2
3
4

NAME

6       nm - print name list (2BSD)
7

SYNOPSIS

9       nm [ -gnopru ] [ file ... ]
10

DESCRIPTION

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), C (common symbol), or  f
20       file name.  If the symbol is local (non-external) the type letter is in
21       lower case.  If the file is an overlaid executable, the overlay  number
22       is  printed  after the name.  The number is printed if the symbol is in
23       an overlay or if it is the entry point (in the base segment) for a sub‐
24       routine in an overlay.  The output is sorted alphabetically.
25
26       Options are:
27
28       -g     Print only global (external) symbols.
29
30       -n     Sort numerically rather than alphabetically.
31
32       -o     Prepend  file or archive element name to each output line rather
33              than only once.
34
35       -p     Don't sort; print in symbol-table order.
36
37       -r     Sort in reverse order.
38
39       -u     Print only undefined symbols.
40

SEE ALSO

42       ar(1), ar(5), a.out(5), stab(5)
43
44
45
463rd Berkeley Distribution       April 29, 1985                           NM(1)
Impressum