1 .TH NM 1 "July 28, 2005" "Apple Computer, Inc."
3 nm \- display name list (symbol table)
17 .BI \-arch " arch_flag
22 displays the name list (symbol table) of each object
24 in the argument list. If an argument is an archive, a listing for each object
25 file in the archive will be produced.
27 can be of the form libx.a(x.o), in which case only symbols from that member of the
28 object file are listed.
29 (The parentheses have to be quoted to get by the shell.)
32 is given, the symbols in
36 Each symbol name is preceded by its value (blanks if undefined).
39 option is specified, this value is followed by one of the following
40 characters, representing the symbol type:
49 (text section symbol),
52 (data section symbol),
61 (for debugger symbol table entries; see
66 (symbol in a section other than those above),
71 If the symbol is local (non-external), the symbol's type is
72 instead represented by the corresponding
73 lowercase letter. A lower case
75 in a dynamic shared library indicates a undefined reference to a private
76 external in another module in the same library.
78 If the symbol is a Objective C method, the symbol name is
79 .BI \(+-[ "Class_name(category_name)" " " "method:name:" "]\fR,"
80 where `+' is for class methods, `\-' is for instance methods,
83 is present only when the method is in a category.
85 The output is sorted alphabetically by default.
90 Display all symbol table entries,
91 including those inserted for use by debuggers.
94 Display only global (external) symbols.
97 Sort numerically rather than alphabetically.
100 Prepend file or archive element name to each output line,
101 rather than only once.
104 Don't sort; display in symbol-table order.
107 Sort in reverse order.
110 Display only undefined symbols.
113 Display the N_SECT type symbols (Mach-O symbols) as
114 .RI ( "segment_name, section_name" )
119 and then the symbol name.
120 Undefined, common, absolute and indirect symbols get displayed as
129 Display the symbol table entry's fields in hexadecimal,
130 along with the name as a string.
133 Just display the symbol names (no value or type).
135 .BI \-s " segname sectname"
136 List only those symbols in the section
137 .I (segname,sectname).
142 if no symbol has as its value the starting address of the section.
143 (This is used with the
147 .BI \-arch " arch_type"
148 Specifies the architecture,
152 to operate on when the file is a universal file (see
154 for the currently known
158 can be "all" to operate on all architectures in the file.
159 The default is to display the symbols from only the host architecture,
160 if the file contains it;
161 otherwise, symbols for all architectures in the file
165 Display the symbol table of a dynamic library flat (as one file not separate
169 Write the pathname or library name of an object on each line.
172 Write information in a portable output format.
177 output, write the numeric value in the specified format. The format shall be
178 dependent on the single character used as the format option-argument:
181 The value shall be written in decimal (default).
184 The value shall be written in octal.
187 The value shall be written in hexadecimal.
189 ar(1), ar(5), Mach-O(5), stab(5), nlist(3)
191 Displaying Mach-O symbols with
193 is too verbose. Without the
195 symbols in the Objective C sections get displayed as an `s'.