Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (m - o) nm(1)
following symbols before the lines containing those symbols.
If the le operand does not name a library, the format of the line is:
"%s: ", le
If the corresponding le operand names a library, the format of the line is:
"%s[%s]:\n", le, object-le
EXAMPLES
1. To list the external global symbols of the linkle a.out,enter:
nm -g a.out
2. To display symbol sizes and values as hexadecimal values and then sort the symbols by
value, enter:
nm -xv a.out
3. To show undened symbols from a le xyz,enter:
nm -u xyz
4. To use the output format with the object name on every line, enter:
nm -PA foo.o
FILES
a.out The default input le.
EXIT VALUES
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
RELATED INFORMATION
Commands: ar(1), make(1), strip(1).
Files: ar(4).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specication with extensions, except that the -f
ag is ignored.
527188-007 Hewlett-Packard Company 653