HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
n
nm(1) nm(1)
By default, nm prints the entire name of the symbols listed. Since object files can
have symbol names with an arbitrary number of characters, a name that is longer
than the width of the column set aside for names will overflow its column, forcing
every column after the name to be misaligned.
-u Display undefined symbols only.
-U Print the usage menu. -v Sort symbols by value before they are printed.
-V Display the executing version of the nm command on standard error.
-x Display the value and size of a symbol in hexadecimal. This is the default for the -P
format. Equivalent to -t x.
Default Output Format - 32 bit
If the default (neither the -p nor the -P option) output format is specified, each symbol has the following
columns, separated by vertical bars (|). The default for numbers is decimal (-d or -t d).
If decimal:
"%20s|%10d|%6s|%7s|%s",
name, value
, scope, type, subspace
If octal:
"%20s|%012o|%6s|%7s|%s",
name, value, scope, type, subspace
If hexadecimal:
"%20s|0x%08x|%6s|%7s|%s",
name, value, scope, type, subspace
Default Output Format - 64 bit
If the default (neither the
-p nor the -P option) output format is specified, each symbol has the following
columns, separated by vertical bars (|). The default for numbers is decimal (-d or
-t d).
If decimal:
"[%u]%s|%22llu|%8u|%s|%s|%1d|%s|%s",
index, value, size, type, bind, O, shndx, name
If octal:
"[%u]%s|%022llo|%010o|%s|%s|%1o|%s|%s",
index, value, size, type, bind, O, shndx, name
If hexadecimal:
"[%u]%s|0x%016llx|0x%08x|%s|%s|%1x|%s|%s",
index, value, size, type, bind, O, shndx, name
The descriptions are explained below:
name The name of the symbol.
value Its value expressed as an offset or an address depending on its storage class.
scope The scope of the symbol (
external, sdef, static,orundefined). The
sdef
scope indicates an external symbol that is flagged as a secondary definition.
type The type of the symbol (absolute, arg_ext, code, data, entry,
milli_ext,
millicode, module, null, oct_dis, plabel, pri_prog, sec_prog,
storage, stub, sym_ext, tstor).
subspace The subspace to which the symbol belongs.
bind Specifies the symbol binding type (local, weak, global).
O This field is used for files that have large section tables (>65K sections). For smaller
files, the value of this field is 0.
Shndx Identifies the index of the section that the symbol belongs to.
Identifies the index of the symbol in the symbol table.
Section 1−−618 − 2 − HP-UX Release 11i: December 2000
___
___