| manpages.info - online man pages | ![]() |
|||
|
nm (1) Table of Contents
Namenm - display name list (symbol table)
Synopsisnm [ -agnoprumxjlf [ s segname sectname ]] [ file ... ]
DescriptionNm displays the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object file in the archive will be produced. File can be of the form libx.a(x.o), in which case only symbols from that member of the object file are listed. (The parentheses have to be quoted to get by the shell.) If no file is given, the symbols in a.out are listed.
Each symbol name is preceded by its value (blanks if undefined). Unless the -m option is specified, this value is followed by one of the following characters, representing the symbol type: U (undefined), A (absolute), T (text section symbol), D (data section symbol), B (bss section symbol), C (common symbol), - (for debugger symbol table entries; see -a below), S (symbol in a section other than those above), or I (indirect symbol). If the symbol is local (non-external), the symbol's type is instead represented by the corresponding lowercase letter. A lower case u in a dynamic shared library indicates a undefined reference to a private external in another module in the same library.
If the symbol is a Objective C method, the symbol name is +-[Class_name(category_name) method:name:], where `+' is for class methods, `-' is for instance methods, and (category_name) is present only when the method is in a category.
The output is sorted alphabetically by default.
Options are:
See Alsoar(1) , ar(5) , Mach-O(5) , stab(5) , nlist(3)
BugsDisplaying Mach-O symbols with -m is too verbose. Without the -m, symbols in the Objective C sections get displayed as an `s'.
|