nm.1 (2010 09)
n
nm(1) nm(1)
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:
"%s[%s]:\n", file, object-file
EXTERNAL INFLUENCES
Environment Variables
The following internationalization variables affect the execution of
nm:
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3