HP-UX Reference (11i v2 07/12) - 1 User Commands N-Z (vol 2)
n
nm(1) nm(1)
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:
LANG determines the locale category for native language, local customs and coded character set in the
absence of LC_ALL or other LC_* environment variables. If LANG is not specified or is null, it defaults to
C (see lang(5)).
94 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: December 2007 Update