man.bsd.lv manual page server

Manual Page Search Parameters
NM(1) General Commands Manual NM(1)

nm - print name list

nm [ -gnopru ] [ file ... ]

Nm prints the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object file in the archive will be produced. If no file is given, the symbols in `a.out' are listed.

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.

Options are:

Print only global (external) symbols.
Sort numerically rather than alphabetically.
Prepend file or archive element name to each output line rather than only once.
Don't sort; print in symbol-table order.
Sort in reverse order.
Print only undefined symbols.

ar(1), ar(5), a.out(5)

UNIX-7