NM(1) | General Commands Manual | NM(1) |
nm
— display name
list (symbol table)
nm |
[-AaCDegnoPprsuw ] [-t
d |o |x ]
[file ...] |
The symbol table (name list) of each object in
file(s) is displayed. If a library (archive) is given,
nm
displays a list for each object archive member.
If file is not present, nm
searches for the file a.out and displays its symbol
table if it exists.
The options are as follows:
-A
-a
-C
-D
-e
-g
-n
-o
-A
).-P
-A
or -o
has been
specified; symbol name; symbol type; symbol value and size (unless the
symbol is undefined). The radix of symbol values and sizes defaults to
decimal, and may be changed with the -t
option.-p
-r
-s
-t
d
|o
|x
-u
-w
nm
will silently ignore all archive members which
are not object files.Each symbol name is preceded by its value (a blank field if the symbol is undefined) and one of the following letters:
If the symbol is local (non-external), the type letter is in lower case. The output is sorted alphabetically.
The nm
utility is part of the
IEEE Std 1003.1-2008 (“POSIX.1”)
specification; this implementation is largely incompatible with that
standard.
An nm
command appeared in
Version 1 AT&T UNIX.
September 6, 2019 | OpenBSD-current |