Manual page for NM(1)
nm - display name list (symbol table)
file ... ]
displays the name list (symbol table) of each object
in the argument list. If an argument is an archive, a listing for each object
file in the archive will be produced.
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.)
is given, the symbols in
Each symbol name is preceded by its value (blanks if undefined).
option is specified, this value is followed by one of the following
characters, representing the symbol type:
(text section symbol),
(data section symbol),
(bss section symbol),
(for debugger symbol table entries; see
(symbol in a section other than those above),
If the symbol is local (non-external), the symbol's type is
instead represented by the corresponding
lowercase letter. A lower case
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
where `+' is for class methods, `-' is for instance methods,
is present only when the method is in a category.
The output is sorted alphabetically by default.
Display all symbol table entries,
including those inserted for use by debuggers.
Display only global (external) symbols.
Sort numerically rather than alphabetically.
Prepend file or archive element name to each output line,
rather than only once.
Don't sort; display in symbol-table order.
Sort in reverse order.
Display only undefined symbols.
Display the N_SECT type symbols (Mach-O symbols) as
followed by either
and then the symbol name.
Undefined, common, absolute and indirect symbols get displayed as
Display the symbol table entry's fields in hexadecimal,
along with the name as a string.
Just display the symbol names (no value or type).
- -s segname sectname
List only those symbols in the section
List a pseudo symbol
if no symbol has as its value the starting address of the section.
(This is used with the
- -arch arch_type
Specifies the architecture,
of the file for
to operate on when the file is a fat file (see
for the currently known
can be "all" to operate on all architectures in the file.
The default is to display the symbols from only the host architecture,
if the file contains it;
otherwise, symbols for all architectures in the file
Display the symbol table of a dynamic library flat (as one file not separate
ar(1), ar(5), Mach-O(5), stab(5), nlist(3)
Displaying Mach-O symbols with
is too verbose. Without the
symbols in the Objective-C sections get displayed as an `s'.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97