Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

nm(1) OSS Shell and Utilities Reference Manual
following symbols before the lines containing those symbols.
If the file operand does not name a library, the format of the line is:
"%s: ", file
If the corresponding file operand names a library, the format of the line is:
"%s[%s]:\n", file, object- file
EXAMPLES
1. To list the external global symbols of the linkfile 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 undefined symbols from a file 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 file.
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 specification with extensions, except that the -f
flag is ignored.
654 Hewlett-Packard Company 527188-021