Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

ar(5)

a.out(5)

NM(1)                                BSD                                 NM(1)



NAME
     nm - print name list

SYNOPSIS
     nm [ -agnopru ] [ file ... ]

DESCRIPTION
     nm prints the name list (symbol table) of each object file in the
     argument list.  If an argument is an archive, nm produces a listing for
     each object file in the archive.  If you do not specify a file, nm lists
     the symbols in the file a.out.

     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), S (user
     defined segment symbol), f filename, - for debugger symbol table entries
     (see -a below), or G (global library symbol) if the Domain/OS BSD option,
     -Ag, is supplied. If the symbol is local (non-external) the type letter
     is lowercase.  nm sorts its output alphabetically.

OPTIONS
     -a   Print symbol table entries inserted for use by debuggers.

     -g   Print only global (external) symbols.

     -n   Sort numerically rather than alphabetically.

     -o   Prefix file or archive element name to each output line.

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

     -r   Sort in reverse order.

     -u   Print only undefined symbols.

     -Ag  Check KGT (Known Global Table) to see if undefined globals are
          defined in global libraries.  If specified with the -u option, nm
          will not print those undefined symbols that are defined in global
          libraries.

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

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