Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nm_-_BSD_Version(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar

nm



NM - BSD VERSION(1,C)       AIX Commands Reference        NM - BSD VERSION(1,C)



-------------------------------------------------------------------------------
nm - BSD Version



PURPOSE

Displays the symbol table of an object file.

SYNTAX


               +--------+
/usr/ucb/nm ---| +----+ |--- file ---|
               +-| -a |-+ ^        |
                ^| -g ||  +--------+
                || -n ||
                || -o ||
                || -p ||
                || -r ||
                || -u ||
                |+----+|
                +------+


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The nm command 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
debugger 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.

FLAGS

-a     Print symbol table entries inserted for use by debuggers.
-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.




Processed November 8, 1990   NM - BSD VERSION(1,C)                            1





NM - BSD VERSION(1,C)       AIX Commands Reference        NM - BSD VERSION(1,C)



RELATED INFORMATION

See the following commands:  "ar" and "nm."




















































Processed November 8, 1990   NM - BSD VERSION(1,C)                            2



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