2 .TH "LLVM-NM" "1" "2013-04-11" "3.3" "LLVM"
4 llvm-nm \- list LLVM bitcode and object file's symbol table
6 .nr rst2man-indent-level 0
10 level \\n[rst2man-indent-level]
11 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
18 .\" .rstReportMargin pre:
20 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
21 . nr rst2man-indent-level +1
22 .\" .rstReportMargin post:
26 .\" indent \\n[an-margin]
27 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .nr rst2man-indent-level -1
29 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
30 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32 .\" Man page generated from reStructuredText.
36 \fBllvm\-nm\fP [\fIoptions\fP] [\fIfilenames...\fP]
39 The \fBllvm\-nm\fP utility lists the names of symbols from the LLVM bitcode
40 files, object files, or \fBar\fP archives containing them, named on the
41 command line. Each symbol is listed along with some simple information about its
42 provenance. If no file name is specified, or \fI\-\fP is used as a file name,
43 \fBllvm\-nm\fP will process a file on its standard input stream.
45 \fBllvm\-nm\fP\(aqs default output format is the traditional BSD \fBnm\fP
46 output format. Each such output record consists of an (optional) 8\-digit
47 hexadecimal address, followed by a type code character, followed by a name, for
48 each symbol. One record is printed per line; fields are separated by spaces.
49 When the address is omitted, it is replaced by 8 spaces.
51 Type code characters currently supported, and their meanings, are as follows:
56 Named object is referenced but undefined in this bitcode file
63 Common (multiple definitions link together into one def)
70 Weak reference (multiple definitions link together into zero or one definitions)
77 Local function (text) object
84 Global function (text) object
105 Something unrecognizable
109 Because LLVM bitcode files typically contain objects that are not considered to
110 have addresses until they are linked into an executable image or dynamically
111 compiled "just\-in\-time", \fBllvm\-nm\fP does not print an address for any
112 symbol in a LLVM bitcode file, even symbols which are defined in the bitcode
118 Use BSD output format. Alias for \fI\-\-format=bsd\fP.
123 Use POSIX.2 output format. Alias for \fI\-\-format=posix\fP.
127 .B \-\-debug\-syms, \-a
128 Show all symbols, even debugger only.
133 Print only symbols defined in this file (as opposed to
134 symbols which may be referenced by objects in this file, but not
135 defined in this file.)
140 Display dynamic symbols instead of normal symbols.
144 .B \-\-extern\-only, \-g
145 Print only symbols whose definitions are external; that is, accessible
150 .B \-\-format=format, \-f format
151 Select an output format; \fIformat\fP may be \fIsysv\fP, \fIposix\fP, or \fIbsd\fP. The default
157 Print a summary of command\-line options and their meanings.
162 Shows symbols in order encountered.
166 .B \-\-numeric\-sort, \-n, \-v
167 Sort symbols by address.
171 .B \-\-print\-file\-name, \-A, \-o
172 Precede each symbol with the file it came from.
176 .B \-\-print\-size, \-S
177 Show symbol size instead of address.
182 Sort symbols by size.
186 .B \-\-undefined\-only, \-u
187 Print only symbols referenced but not defined in this file.
194 \fBllvm\-nm\fP cannot demangle C++ mangled names, like GNU \fBnm\fP
197 \fBllvm\-nm\fP does not support the full set of arguments that GNU
204 \fBllvm\-nm\fP exits with an exit code of zero.
207 llvm\-dis|llvm\-dis, ar(1), nm(1)
209 Maintained by The LLVM Team (http://llvm.org/).
211 2003-2013, LLVM Project
212 .\" Generated by docutils manpage writer.