Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

NM(1)

NAME

nm − print name list

USAGE

nm [ −gnopru ] [ file ...  ]

DESCRIPTION

Nm prints the name list (symbol table) of each object file in the argument list.  If you fail to supply the name of a file, nm lists the symbols in the file a.out in the current directory. 

Each symbol name is preceded by its value (blanks if undefined) and one of the following letters: U (undefined), A (absolute), T (text segment symbol), D (data segment symbol), B (bss segment symbol), C (common symbol), f (file name), or G (global).  If the symbol is local (non-external), the letter is in lower case.  Nm sorts the output alphabetically. 

OPTIONS

−g Print only global (external) symbols. 

−n Sort numerically rather than alphabetically. 

−o Prepend filename to each output line. 

−p Don’t sort; print in symbol-table order. 

−r Sort in reverse order. 

−u Print only undefined symbols. 

RELATED INFORMATION

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026