2 .\" Man page generated from reStructuredText.
4 .TH "LLVM-NM" "1" "2018-08-02" "7" "LLVM"
6 llvm-nm \- list LLVM bitcode and object file's symbol table
8 .nr rst2man-indent-level 0
12 level \\n[rst2man-indent-level]
13 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
20 .\" .rstReportMargin pre:
22 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
23 . nr rst2man-indent-level +1
24 .\" .rstReportMargin post:
28 .\" indent \\n[an-margin]
29 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
30 .nr rst2man-indent-level -1
31 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
32 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
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
42 its 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 an 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
151 Don\(aqt print any weak symbols in the output.
155 .B \-\-format=format, \-f format
156 Select an output format; \fIformat\fP may be \fIsysv\fP, \fIposix\fP, or \fIbsd\fP\&. The default
162 Print a summary of command\-line options and their meanings.
167 Shows symbols in order encountered.
171 .B \-\-numeric\-sort, \-n, \-v
172 Sort symbols by address.
176 .B \-\-print\-file\-name, \-A, \-o
177 Precede each symbol with the file it came from.
181 .B \-\-print\-size, \-S
182 Show symbol size instead of address.
187 Sort symbols by size.
191 .B \-\-undefined\-only, \-u
192 Print only symbols referenced but not defined in this file.
196 .B \-\-radix=RADIX, \-t
197 Specify the radix of the symbol address(es). Values accepted d(decimal),
198 x(hexadecomal) and o(octal).
205 \fBllvm\-nm\fP does not support the full set of arguments that GNU
212 \fBllvm\-nm\fP exits with an exit code of zero.
215 llvm\-dis, ar(1), nm(1)
217 Maintained by The LLVM Team (http://llvm.org/).
219 2003-2018, LLVM Project
220 .\" Generated by docutils manpage writer.