METAL-NM(1) | Metal | METAL-NM(1) |
metal-nm - list MetalLib and object file's symbol table
metal-nm [options] [filenames...]
The metal-nm utility lists the names of symbols from MetalLibs files, object files, and archives. Each symbol is listed along with some simple information about its provenance. If no filename is specified, default.metallib is used as the input. If - is used as a filename, metal-nm will read a file from its standard input stream.
metal-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 some MetalLib files typically contain objects that are not considered to have addresses until they are linked into an executable image, metal-nm does not print an address for any symbol in such MetalLib files.
metal-nm exits with an exit code of zero.
metal-objdump(1)
2014-2023, The Metal Team
July 5, 2023 | 15 |