NM(VI) − PWB/UNIX 8/24/77
NAME
nm − print name list
SYNOPSIS
nm [ −cnrupg ] [ name ... ]
DESCRIPTION
Nm prints the symbol table from the output file of an assembler or loader run. Each symbol name is preceded by its value (blanks if undefined) and one of the letters U (undefined) A (absolute) T (text segment symbol), D (data segment symbol), B (bss segment symbol), or C (common symbol). If the symbol is local (non-external) the type letter is in lower case. The output is sorted alphabetically. If no file is given, the symbols in a.out are listed. If more than one file is given, each file name is printed preceding the name list. The ability to nm multiple files is most useful with the options −c or −u. Options are:
−clist only C-style external symbols, that is those beginning with underscore ‘_’.
−gprint only global (external) symbols
−nsort by value instead of by name
−pdon’t sort; print in symbol-table order
−rsort in reverse order
−uprint only undefined symbols.
FILES
a.out
BUGS