Displays information about symbols in object files, executable files, and object-file libraries.
nm [ -A ] [ -C ] [ -X {32|64|32_64}] [ -f ] [ -h ] [ -p ] [ -r ] [ -T ] [ -v ] [ -B | -P ] [ -e | -g | -u ] [ -d | -o | -x | -t Format ] File ...
The nm command displays information about symbols in the specified File, which can be an object file, an executable file, or an object-file library. If the file contains no symbol information, the nm command reports the fact, but does not interpret it as an error condition. The nm command reports numerical values in decimal notation by default.
The nm command writes the following symbol information to standard output:
The nm command reports either the library or the object name associated with the file only if you specify the -A option.
The nm command represents the file's symbol type with one of the following characters:
The nm command reports the size associated with the symbol, if applicable.
Note: The nm command supports the -- (double hyphen) flag. This flag distinguishes a File operand if the file name can be misinterpreted as an option. For example, to specify a file name that begins with a hyphen, use the -- flag:
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
nm -e a.out
nm -xv a.out
nm -X64 /usr/lib/libc.a
/usr/ccs/bin/nm | Contains the nm command. |
The ar command, as command, ld command, size command, strip command.
Commands Overview in AIX Version 4.3 System User's Guide: Operating System and Devices.