man.bsd.lv manual page server

Manual Page Search Parameters

NM(1) General Commands Manual NM(1)

nmdisplay name list (symbol table)

nm [-agnopruw] file ...

The symbol table (name list) of each object in file(s) is displayed. If a library (archive) is given, nm displays a list for each object archive member. If file is not present, nm searches for the file a.out and if present, displays the symbol table for a.out.
Display symbol table entries inserted for use by debuggers.
Restrict display to external (global) symbols.
Present results in numerical order.
Display full path or library name of object on every line.
Do not sort at all.
Reverse order sort.
Display undefined symbols only.
Warn about non-object archive members. Normally, nm will silently ignore all archive members which are not object files.

Each symbol name is preceded by its value (a blank field if the symbol is undefined) and one of the following letters:

-
debugger symbol table entries (see the -a option).
absolute
bss segment symbol
common symbol
data segment symbol
file name
text segment symbol
undefined

If the symbol is local (non-external) the type letter is in lower case. The output is sorted alphabetically.

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

An nm command appeared in Version 6 AT&T UNIX.

BSD 4 June 6, 1993 NM(1)