Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
nm(1) OSS Shell and Utilities Reference Manual
NAME
nm - Displays the name list of a linkfile, loadfile, or other object file
SYNOPSIS
nm
[-A]
[-e | -g | -u]
[-f]
[-o]
[-P]
[-t format]
[-v]
[-x]
[file] ...
FLAGS
You can specify the following flags in any combination, but some flags will override others.
-A Writes the full pathname or library name of a named object on each line.
-e Displays only external (global) definitions and static symbol information.
-f Produces full output and writes redundant symbols that are normally suppressed. In the
HP implementation, this flag has no effect, but it is retained for XPG4 compatibility.
-g Writes only external (global) symbol information.
-o Displays a symbol’s value and size as an octal rather than a decimal number (same as
the -to flag).
-P Writes information in a portable output format as specified in Standard Output under
DESCRIPTION.
-t format Writes each numeric value in the specified format. The format depends on the single
character used as the format argument:
d The offset value is written in decimal (this is the default format).
o The offset value is written in octal.
x The offset value is written in hexadecimal.
-u Displays only undefined symbols.
-v Sorts external symbols by value instead of alphabetically before displaying them.
-x Displays a symbol’s value and size as a hexadecimal rather than a decimal number
(same as the -tx flag).
DESCRIPTION
The nm command writes the name list of each specified file to the standard output file.
The nm command displays symbolic information appearing in the linkfile, loadfile, object file,
executable file, or library named by the file operand. If no symbolic information is available for a
valid input file, nm reports that fact but does not consider it an error condition.
The default base for numeric values is decimal.
6−50 Hewlett-Packard Company 527188-007