home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


/usr/ccs/bin/nm [options ] objfiles

Print 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.



Write the full pathname or library name on each line. Solaris only.


Print demangled C++ symbol names. Solaris only.


Display the SHT_DYNSYM symbol information. Solaris only.


Report only external and static symbols; obsolete.


Report all information; obsolete.


Write only external (global) symbol information. Solaris only.


Suppress the header.


Use with -p ; indicate WEAK symbols by appending an asterisk (* ) to key letters.


Sort the external symbols by name.


Report values in octal.


Precede each symbol with its key letter (used for parsing).


Report the object file's name on each line.


Print the archive name (if present), followed by the object file and symbol name. -r overrides this option. Solaris only.


Print section name instead of section index. Solaris only.

-t format

Write numeric values in the specified format : d for decimal, o for octal, and x for hexadecimal. Solaris only.


Truncate the symbol name in the display; obsolete.


Report only the undefined symbols.


Sort the external symbols by value.


Print nm 's version number on standard error.


Report values in hexadecimal.

Key Letters


Absolute symbol.


BSS (uninitialized data space).


Common symbol. SVR4 only.


Data object symbol.


File symbol.


Symbol with no type.


Section symbol.


Text symbol.


Undefined symbol.

Previous: Reference: nl UNIX in a Nutshell: System V Edition Next: Reference: nohup
Reference: nl Book Index Reference: nohup

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System