/usr/ccs/bin/nm [options] objfilesPrint the symbol table (name list) in alphabetical order for one or more object files (usually ELF or COFF files), shared or static libraries, or binary executable programs. Output includes each symbol's value, type, size, name, etc. A key letter categorizing the symbol can also be displayed. You must supply at least one object file.
-AWrite the full pathname or library name on each line. Solaris only.
-CPrint demangled C++ symbol names. Solaris only.
-DDisplay the SHT_DYNSYM symbol information. Solaris only.
-eReport only external and static symbols; obsolete.
-fReport all information; obsolete.
-gWrite only external (global) symbol information. Solaris only.
-hSuppress the header.
-lUse with -p; indicate WEAK symbols by appending an asterisk (*) to key letters.
-nSort the external symbols by name.
-oReport values in octal.
-pPrecede each symbol with its key letter (used for parsing).
-rReport the object file's name on each line.
-RPrint the archive name (if present), followed by the object file and symbol name. -r overrides this option. Solaris only.
-sPrint section name instead of section index. Solaris only.
-t formatWrite numeric values in the specified format: d for decimal, o for octal, and x for hexadecimal. Solaris only.
-TTruncate the symbol name in the display; obsolete.
-uReport only the undefined symbols.
-vSort the external symbols by value.
-VPrint nm's version number on standard error.
-xReport values in hexadecimal.
A | Absolute symbol. |
B | BSS (uninitialized data space). |
C | Common symbol. SVR4 only. |
D | Data object symbol. |
F | File symbol. |
N | Symbol with no type. |
S | Section symbol. |
T | Text symbol. |
U | Undefined symbol. |