HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)

n
nm(1) nm(1)
-r Prefix each output line with the name of the object file or archive, file. Equivalent
to
-A.
-s Print the section index instead of the section name (ELF only).
-t format Display each numeric value in the specified format. format can be one of:
d Display the value and size of a symbol in decimal. This is the default for the
default format or the -p format. Equivalent to
-d.
o Display the value and size of a symbol in octal. Equivalent to
-o.
x Display the value and size of a symbol in hexadecimal. This is the default for
the -P format. Equivalent to -x
.
-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.
HP-UX 11i Version 2: August 2003 2 Hewlett-Packard Company Section 1633