BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / nm.0
NM(1) UNIX Programmer's Manual NM(1)
N\bNA\bAM\bME\bE
nm - print name list
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
n\bnm\bm [ -\b-a\bag\bgn\bno\bop\bpr\bru\bu ] [ file ... ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bN_\bm prints the name list (symbol table) of each object _\bf_\bi_\bl_\be
in the argument list. If an argument is an archive, a list-
ing for each object file in the archive will be produced.
If no _\bf_\bi_\bl_\be is given, the symbols in "a.out" are listed.
Each symbol name is preceded by its value (blanks if unde-
fined) and one of the letters U\bU (undefined), A\bA (absolute), T\bT
(text segment symbol), D\bD (data segment symbol), B\bB (bss seg-
ment symbol), C\bC (common symbol), f\bf file name, or -\b- for
debugger symbol table entries (see -\b-a\ba below). If the symbol
is local (non-external) the type letter is in lower case.
The output is sorted alphabetically.
Options are:
-\b-a\ba Print symbol table entries inserted for use by
debuggers.
-\b-g\bg Print only global (external) symbols.
-\b-n\bn Sort numerically rather than alphabetically.
-\b-o\bo Prepend file or archive element name to each output
line rather than only once.
-\b-p\bp Don't sort; print in symbol-table order.
-\b-r\br Sort in reverse order.
-\b-u\bu Print only undefined symbols.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
ar(1), ar(5), a.out(5), stab(5)
Printed 7/9/88 April 29, 1985 1