LLVM-NM(1) | LLVM | LLVM-NM(1) |
llvm-nm - list LLVM bitcode and object file's symbol table
llvm-nm [options] [filenames…]
The llvm-nm utility lists the names of symbols from LLVM bitcode files, object files, and archives. Each symbol is listed along with some simple information about its provenance. If no filename is specified, a.out is used as the input. If - is used as a filename, llvm-nm will read a file from its standard input stream.
llvm-nm’s default output format is the traditional BSD nm output format. Each such output record consists of an (optional) 8-digit hexadecimal address, followed by a type code character, followed by a name, for each symbol. One record is printed per line; fields are separated by spaces. When the address is omitted, it is replaced by 8 spaces.
The supported type code characters are as follows. Where both lower and upper-case characters are listed for the same meaning, a lower-case character represents a local symbol, whilst an upper-case character represents a global (external) symbol:
a, A
b, B
C
d, D
i, I
n
COFF: debug symbol.
N
s, S
Mach-O: absolute symbol or symbol from a section other than __TEXT_EXEC __text, __TEXT __text, __DATA __data, or __DATA __bss.
r, R
t, T
u
U
v
V
w
W
-
?
Because LLVM bitcode files typically contain objects that are not considered to have addresses until they are linked into an executable image or dynamically compiled “just-in-time”, llvm-nm does not print an address for any symbol in an LLVM bitcode file, even symbols which are defined in the bitcode file.
llvm-nm exits with an exit code of zero.
llvm-ar(1), llvm-objdump(1), llvm-readelf(1), llvm-readobj(1)
Maintained by the LLVM Team (https://llvm.org/).
2003-2023, LLVM Project
2023-02-17 | 14 |