Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

crt0(3)

end(3C)

a.out_300(4)

a.out_800(4)

ar(4)

nm_300(1)  —  Series 300/400 Implementation

NAME

nm − print name list of common object file

SYNOPSIS

nm [-degnoprsux] [file ...]

DESCRIPTION

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

Each symbol name is preceded by its value (zero if undefined) and one of the letters:

U undefined,

A absolute,

T text segment symbol,

D data segment symbol, or

B bss segment symbol. 

If the symbol is local (non-external), the type letter is in lowercase.  If the symbol is a secondary definition, the type letter is followed by the letter S.  The output is sorted alphabetically.  Common symbols are indicated by a type of U and a value indicating the size. 

Options

nm recognizes the following options:

-d Print numeric values in decimal. 

-e Print only external (global) symbols.  Same as -g. 

-g Print only global (external) symbols.  Same as -e. 

-n Sort numerically rather than alphabetically. 

-o Precede each output line with the file or archive element name, rather than printing the file or archive element name only once.  This option can be used to make piping to grep more meaningful (see grep(1)).

-p Do not sort; print in symbol-table order. 

-r Sort in reverse order. 

-s Sort according to the size of the external symbol (computed from the difference between the value of the symbol and the value of the symbol with the next highest value).  This difference is the value printed.  This flag turns on -g and -n and turns off -u and -p. 

-u Print only undefined symbols. 

-x Print numeric values in hexadecimal (default). 

EXTERNAL INFLUENCES

International Code Set Support

Single-byte character code sets are supported. 

SEE ALSO

ar(1), crt0(3), end(3C), a.out_300(4), a.out_800(4), ar(4). 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

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