NM(1) UNIX Programmer's Manual NM(1) NAME nm - print name list (symbol table) of object file SYNOPSIS nm [ -gnoprsu ] [_f_i_l_e_n_a_m_e ...] HP-UX COMPATIBILITY Level: HP-UX/STANDARD Origin: System III Remarks: This manual page describes _n_m as implemented on the Series 200 computers. Refer to other _n_m(1) manual pages for information valid for other implementations. DESCRIPTION _N_m prints the name list (symbol table) of each object file 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 _f_i_l_e is given, the symbols in a.out are listed. Each symbol name is preceded by its value printed in a representation appropriate to the architecture of the machine (blanks if undefined) and one of the letters U (undefined), A (absolute), T (text segment symbol), D (data segment symbol), B (bss segment symbol), R (register sym- bol), F (file symbol), or C (common symbol). If the symbol is local (non-external) the type letter is in lower case. The output is sorted alphabetically. Options are: -g Print only global (external) symbols. -n Sort numerically rather than alphabetically. -o Prepend file or archive element name to each output line rather than only once. This option can be used to make piping to _g_r_e_p(1) more meaningful. -p Don't sort; print in symbol-table order. -r Sort in reverse order. -s Sort according to the size of the external symbol (com- puted from the difference between the value of the sym- bol and the value of the symbol with the next highest value). This difference is the value printed. This flag turns on -g and -n and turns off -u and -p. -u Print only undefined symbols. If the symbol was an align symbol, the letter L will be printed after the letter describing its type. SEE ALSO ar(1), a.out(5), ar(5).