summaryrefslogtreecommitdiff
path: root/man/mcpu-nm.1
blob: abf4f92b2c4c6f90f8623f20b66549dbd8386d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.TH MCPU-NM 1 "October 2026" "LibMCPU" "User Commands"

.SH NAME
mcpu-nm \- list symbols from MCPU MELF files and archives
.SH SYNOPSIS
.B mcpu-nm
.RI [ options ] " MELF-file(s)"
.SH DESCRIPTION
.B mcpu-nm
lists symbols from MELF ET_REL objects, ET_EXEC executables, ET_DYN shared
objects and deterministic MCPU static archives.  By default it reads .symtab
and sorts symbols by name.  For ABI-v2/v3 runtime symbols use
.BR -D .
.SH OPTIONS
.TP
.BR -a ", " --debug-syms
Display all named symbols, including FILE and SECTION symbols.
.TP
.BR -g ", " --extern-only
Display only external GLOBAL and WEAK symbols.
.TP
.BR -u ", " --undefined-only
Display only undefined symbols.
.TP
.BR -n ", " --numeric-sort
Sort symbols numerically by value.
.TP
.BR -r ", " --reverse-sort
Reverse the selected sort order.
.TP
.BR -p ", " --no-sort
Preserve symbol-table order.
.TP
.BR -D ", " --dynamic
Read .dynsym instead of .symtab.
.TP
.BR -A ", " --print-file-name
Prefix each output line with the input file name.  Archive output identifies
the archive and member.
.TP
.B --help
Display help and exit.
.TP
.B --version
Display the program name, MCPU toolchain identity and version, then exit.
.TP
.B --dump-version
Display only the MCPU package version number and exit.
.SH SYMBOL TYPE LETTERS
As with traditional nm output, upper-case type letters identify external
symbols and lower-case letters local symbols.  The letter also reflects the
MCPU section class, for example T/t for PROGRAM text and D/d for DATA.
.SH EXIT STATUS
Zero on successful inspection; nonzero for inaccessible or malformed input.
.SH EXAMPLES
.nf
mcpu-nm file.o
mcpu-nm -n file.o
mcpu-nm -D libfoo.so.1
mcpu-nm -A -D -g libfoo.so.1
mcpu-nm -A libsimple.a
.fi
.SH SEE ALSO
.BR mcpu-readelf (1),
.BR mcpu-objdump (1),
.BR libmcpu (7)