HP-UX Linker and Libraries User's Guide

Viewing Symbols in an Object file with nm(1)
The nm(1) command displays the symbol table of each specified object. The file can be a
relocatable object file or an executable object file, or an archive of relocatable or executable
object files.
The nm command provides three general output formats: the default (neither -p nor -P specified),
-p, and -P. See the nm(1) man page for a detailed description of the output formats.
Use the optionTo do this
-APrefix each output line with the name of the object file or archive file. Equivalent to
-r.
-CDemangle C++ names before printing them.
-dDisplay the value and size of a symbol in decimal. This is the default for the default
format or the -p format. Equivalent to -td.
-eDisplay only external and static symbols. This option is ignored (see -f).
-fDisplay full output. This option is in force by default.
-gDisplay only external (global) symbol information.
-hDo not display the output header data.
-lDistinguish between weak and global symbols by appending * to the key letter of
weak symbols. Only takes effect with -p and/or -P.
-nSort symbols by name, in ascending collation order before they are printed. This is
the default. To turn off this option, use -N.
-NDisplay symbols in the order in which they appear in the symbol table.
-oDisplay the value and size of a symbol in octal. Equivalent to -t o.
-p
Display information in a blank-separated output format. Each symbol name is preceded
by its value (blanks if undefined) and one of the letters. Lower case letters indicate
local values. Upper case letters indicate global values.
absolute
a, A
bss symbol
b, B
common symbol
c, C
data symbol
d, D
milli symbol
m, M
no type
n, N
section region
r, R
text symbol
t, T
undefined symbol
u, U
-PDisplay information in a portable output format to standard output. See the nm(1)
manpage for format information. Note that -p is not compatible with -P.
56 Linker Tools for Itanium-Based Systems