HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nm(1) nm(1)
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.
Output Format for −−p
If the
-p option is specified, information is displayed using the following portable C-language formats. The
default for numbers is decimal (-d or -t d).
If decimal: "%010d %s %s", value, type, name
If octal: "%012o %s %s", value, type, name
If hexadecimal: "0x%08x %s %s", value, type, name
If -A or -r, the line is preceded by: "%20s:", file
Output Format for −−P
If the -P option is specified, information is displayed using the following portable C-language formats. The
default for numbers is hexadecimal (-x or -t x). In the format string,
%s represents string output; %d
represents decimal output; %o represents octal output; %x represents hexadecimal output; \n represents
newline; all other characters represent themselves.
• If decimal is specified:
"%s %s %d %d\n", library-object
, name, type, value, size
• If octal is specified:
"%s%s %s %o %o\n", library-object
, name, type, value, size
• If hexadecimal is specified, or by default:
"%s%s %s %x %x\n", library-object
, name, type, value, size
where library-object is a string preformatted as follows:
• If
-A and -r are not specified, library-object is an empty string.
• If
-A or -r is specified, and the corresponding file operand does not name a library:
"%s: ", file
• If -A or -r is specified and the corresponding file operand names a library, object-file names the
object file in the library containing the symbol being described:
"%s[%s]: ", file, object-file
If -A and -r are not specified, and if more than one file operand is specified, or if a single file operand that
names a library is specified, then
nm prints a line identifying the object containing the symbols before the
lines containing those symbols, in one of the following forms:
• If the corresponding file operand does not name a library:
"%s:\n", file
• If the corresponding file operand names a library, object-file names the object file in the library con-
taining the symbol being described:
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1−−653