nm Command nm
Print a program's symbol table
nm [ -adgnoprtux ] file ...
The command nm prints the symbol table of each file. Each file
argument must be a COHERENT object module or an object library
built with the archiver ar. If an argument is a library, nm
prints the symbol table for each member of the library.
The first argument selects one of several options. It is
optional; if present, it must begin with `-'. The options are as
follows:
-a Print all symbols. Normally, nm prints names that are in C-
style format and ignores symbols with names inaccessible from
C programs.
-d Print only defined symbol.
-g Print only global symbols.
-n Sort numerically rather than alphabetically. nm uses unsigned
compares when sorting symbols with this option.
-o Append the file name to the beginning of each output line.
-p Print symbols in the order in which they appear within the
symbol table.
-r Sort in reverse-alphabetical order.
-u Print only undefined symbols.
By default, nm sorts symbol names alphabetically. Each symbol is
followed by its value and its segment.
***** See Also *****
cc, commands, ld, size, strip
COHERENT Lexicon Page 1