Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nm(1) — GDT-UNX 6.8_er0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

ar(5)

a.out(5)

stab(5)

NM(1)  —  UNIX Programmer’s Manual

NAME

nm − print name list

SYNOPSIS

nm [ −cfghnoprux ] [ 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 is produced.  If no file is given, the symbols in ‘a.out’ are listed. 

Each symbol name is preceded by its value (or 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.  If the symbol is local (non-external), the type letter is in lower case.  The output is sorted alphabetically. 

The options are as follows:

−c List only C-style symbols:  specifically those beginning with _. 

−f Print filenames, if more than one. 

−g Print only global (external) symbols. 

−h Print in hexadecimal, rather than octal. 

−n Sort numerically, rather than alphabetically. 

−o Prepend file or archive element name to each output line, rather than only once. 

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

−r Sort in reverse order. 

−u Print only undefined symbols. 

−x Identical to −h

SEE ALSO

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

4th Berkeley Distribution  —  %W%%Q%%Y%

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