2005-05-02 15:01:42 +02:00
|
|
|
.TH NM 1
|
|
|
|
.SH NAME
|
|
|
|
nm \- print name list
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBnm\fR [\fB\-dgnopru\fR]\fR [\fIfile\fR] ...\fR
|
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH OPTIONS
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 5
|
|
|
|
.B \-d
|
|
|
|
# Print the offsets in decimal instead of in hex
|
|
|
|
.TP 5
|
|
|
|
.B \-g
|
|
|
|
# Print only external symbols
|
|
|
|
.TP 5
|
|
|
|
.B \-n
|
|
|
|
# Sort numerically rather than alphabetically
|
|
|
|
.TP 5
|
|
|
|
.B \-o
|
|
|
|
# Prepend file name to each line rather than only once
|
|
|
|
.TP 5
|
|
|
|
.B \-p
|
|
|
|
# Do not sort, print in symbol-table order
|
|
|
|
.TP 5
|
|
|
|
.B \-r
|
|
|
|
# Sort in reverse order
|
|
|
|
.TP 5
|
|
|
|
.B \-u
|
|
|
|
# Print only undefined symbols
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH EXAMPLES
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 20
|
|
|
|
.B nm \-n a.out
|
|
|
|
# Print all symbols in numerical order
|
|
|
|
.TP 20
|
|
|
|
.B nm \-dg a.out
|
|
|
|
# Print globals alphabetically in decimal
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
\fINm\fR prints the symbol table of executable files when it is available.
|
|
|
|
If no file is given, the symbols in \fIa.out\fR are used.
|
|
|
|
The format of the table
|
|
|
|
is somewhat compatible with the one produced by \fIasld\fR when used with
|
|
|
|
the \fB\-s\fR option. The symbol table can be added with \fIast\fR.
|
|
|
|
Assembly language files do not have symbol tables.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR anm (1),
|
|
|
|
.BR asize (1),
|
|
|
|
.BR ar (1),
|
|
|
|
.BR size (1).
|