Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nm(1) — Ultrix-32 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

ar(5)

a.out(5)

stab(5)

NM(1)

NAME

nm − print name list

SYNTAX

nm [ −gnopru ] [ file ... ]

DESCRIPTION

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), C (common symbol), f file name, or − for sdb symbol table entries (see −a below).  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. 

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

−r Sort in reverse order. 

−u Print only undefined symbols. 

DIAGNOSTICS

bad format indicates that the file is neither an archive file nor a ‘.o’ file. 

cannot open indicates that the file could not be opened. 

invalid argument indicates an invalid option was specified. 

no name list indicates that the file does not contain a symbol table. 

ran out of memory indicates that the string table in either the archive or ‘.o’ file is too big. 

SEE ALSO

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

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