| 1 |
205 |
julius |
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
|
| 2 |
|
|
.\"
|
| 3 |
|
|
.\" Standard preamble:
|
| 4 |
|
|
.\" ========================================================================
|
| 5 |
|
|
.de Sh \" Subsection heading
|
| 6 |
|
|
.br
|
| 7 |
|
|
.if t .Sp
|
| 8 |
|
|
.ne 5
|
| 9 |
|
|
.PP
|
| 10 |
|
|
\fB\\$1\fR
|
| 11 |
|
|
.PP
|
| 12 |
|
|
..
|
| 13 |
|
|
.de Sp \" Vertical space (when we can't use .PP)
|
| 14 |
|
|
.if t .sp .5v
|
| 15 |
|
|
.if n .sp
|
| 16 |
|
|
..
|
| 17 |
|
|
.de Vb \" Begin verbatim text
|
| 18 |
|
|
.ft CW
|
| 19 |
|
|
.nf
|
| 20 |
|
|
.ne \\$1
|
| 21 |
|
|
..
|
| 22 |
|
|
.de Ve \" End verbatim text
|
| 23 |
|
|
.ft R
|
| 24 |
|
|
.fi
|
| 25 |
|
|
..
|
| 26 |
|
|
.\" Set up some character translations and predefined strings. \*(-- will
|
| 27 |
|
|
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 28 |
|
|
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 29 |
|
|
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 30 |
|
|
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 31 |
|
|
.\" nothing in troff, for use with C<>.
|
| 32 |
|
|
.tr \(*W-
|
| 33 |
|
|
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 34 |
|
|
.ie n \{\
|
| 35 |
|
|
. ds -- \(*W-
|
| 36 |
|
|
. ds PI pi
|
| 37 |
|
|
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 38 |
|
|
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 39 |
|
|
. ds L" ""
|
| 40 |
|
|
. ds R" ""
|
| 41 |
|
|
. ds C` ""
|
| 42 |
|
|
. ds C' ""
|
| 43 |
|
|
'br\}
|
| 44 |
|
|
.el\{\
|
| 45 |
|
|
. ds -- \|\(em\|
|
| 46 |
|
|
. ds PI \(*p
|
| 47 |
|
|
. ds L" ``
|
| 48 |
|
|
. ds R" ''
|
| 49 |
|
|
'br\}
|
| 50 |
|
|
.\"
|
| 51 |
|
|
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 52 |
|
|
.ie \n(.g .ds Aq \(aq
|
| 53 |
|
|
.el .ds Aq '
|
| 54 |
|
|
.\"
|
| 55 |
|
|
.\" If the F register is turned on, we'll generate index entries on stderr for
|
| 56 |
|
|
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
|
| 57 |
|
|
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 58 |
|
|
.\" output yourself in some meaningful fashion.
|
| 59 |
|
|
.ie \nF \{\
|
| 60 |
|
|
. de IX
|
| 61 |
|
|
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 62 |
|
|
..
|
| 63 |
|
|
. nr % 0
|
| 64 |
|
|
. rr F
|
| 65 |
|
|
.\}
|
| 66 |
|
|
.el \{\
|
| 67 |
|
|
. de IX
|
| 68 |
|
|
..
|
| 69 |
|
|
.\}
|
| 70 |
|
|
.\"
|
| 71 |
|
|
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 72 |
|
|
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 73 |
|
|
. \" fudge factors for nroff and troff
|
| 74 |
|
|
.if n \{\
|
| 75 |
|
|
. ds #H 0
|
| 76 |
|
|
. ds #V .8m
|
| 77 |
|
|
. ds #F .3m
|
| 78 |
|
|
. ds #[ \f1
|
| 79 |
|
|
. ds #] \fP
|
| 80 |
|
|
.\}
|
| 81 |
|
|
.if t \{\
|
| 82 |
|
|
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 83 |
|
|
. ds #V .6m
|
| 84 |
|
|
. ds #F 0
|
| 85 |
|
|
. ds #[ \&
|
| 86 |
|
|
. ds #] \&
|
| 87 |
|
|
.\}
|
| 88 |
|
|
. \" simple accents for nroff and troff
|
| 89 |
|
|
.if n \{\
|
| 90 |
|
|
. ds ' \&
|
| 91 |
|
|
. ds ` \&
|
| 92 |
|
|
. ds ^ \&
|
| 93 |
|
|
. ds , \&
|
| 94 |
|
|
. ds ~ ~
|
| 95 |
|
|
. ds /
|
| 96 |
|
|
.\}
|
| 97 |
|
|
.if t \{\
|
| 98 |
|
|
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 99 |
|
|
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 100 |
|
|
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 101 |
|
|
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 102 |
|
|
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 103 |
|
|
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 104 |
|
|
.\}
|
| 105 |
|
|
. \" troff and (daisy-wheel) nroff accents
|
| 106 |
|
|
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 107 |
|
|
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 108 |
|
|
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 109 |
|
|
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 110 |
|
|
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 111 |
|
|
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 112 |
|
|
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 113 |
|
|
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 114 |
|
|
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 115 |
|
|
. \" corrections for vroff
|
| 116 |
|
|
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 117 |
|
|
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 118 |
|
|
. \" for low resolution devices (crt and lpr)
|
| 119 |
|
|
.if \n(.H>23 .if \n(.V>19 \
|
| 120 |
|
|
\{\
|
| 121 |
|
|
. ds : e
|
| 122 |
|
|
. ds 8 ss
|
| 123 |
|
|
. ds o a
|
| 124 |
|
|
. ds d- d\h'-1'\(ga
|
| 125 |
|
|
. ds D- D\h'-1'\(hy
|
| 126 |
|
|
. ds th \o'bp'
|
| 127 |
|
|
. ds Th \o'LP'
|
| 128 |
|
|
. ds ae ae
|
| 129 |
|
|
. ds Ae AE
|
| 130 |
|
|
.\}
|
| 131 |
|
|
.rm #[ #] #H #V #F C
|
| 132 |
|
|
.\" ========================================================================
|
| 133 |
|
|
.\"
|
| 134 |
|
|
.IX Title "NM 1"
|
| 135 |
|
|
.TH NM 1 "2009-10-16" "binutils-2.20" "GNU Development Tools"
|
| 136 |
|
|
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 137 |
|
|
.\" way too many mistakes in technical documents.
|
| 138 |
|
|
.if n .ad l
|
| 139 |
|
|
.nh
|
| 140 |
|
|
.SH "NAME"
|
| 141 |
|
|
nm \- list symbols from object files
|
| 142 |
|
|
.SH "SYNOPSIS"
|
| 143 |
|
|
.IX Header "SYNOPSIS"
|
| 144 |
|
|
nm [\fB\-a\fR|\fB\-\-debug\-syms\fR]
|
| 145 |
|
|
[\fB\-g\fR|\fB\-\-extern\-only\fR][\fB\-\-plugin\fR \fIname\fR]
|
| 146 |
|
|
[\fB\-B\fR] [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR]] [\fB\-D\fR|\fB\-\-dynamic\fR]
|
| 147 |
|
|
[\fB\-S\fR|\fB\-\-print\-size\fR] [\fB\-s\fR|\fB\-\-print\-armap\fR]
|
| 148 |
|
|
[\fB\-A\fR|\fB\-o\fR|\fB\-\-print\-file\-name\fR][\fB\-\-special\-syms\fR]
|
| 149 |
|
|
[\fB\-n\fR|\fB\-v\fR|\fB\-\-numeric\-sort\fR] [\fB\-p\fR|\fB\-\-no\-sort\fR]
|
| 150 |
|
|
[\fB\-r\fR|\fB\-\-reverse\-sort\fR] [\fB\-\-size\-sort\fR] [\fB\-u\fR|\fB\-\-undefined\-only\fR]
|
| 151 |
|
|
[\fB\-t\fR \fIradix\fR|\fB\-\-radix=\fR\fIradix\fR] [\fB\-P\fR|\fB\-\-portability\fR]
|
| 152 |
|
|
[\fB\-\-target=\fR\fIbfdname\fR] [\fB\-f\fR\fIformat\fR|\fB\-\-format=\fR\fIformat\fR]
|
| 153 |
|
|
[\fB\-\-defined\-only\fR] [\fB\-l\fR|\fB\-\-line\-numbers\fR] [\fB\-\-no\-demangle\fR]
|
| 154 |
|
|
[\fB\-V\fR|\fB\-\-version\fR] [\fB\-X 32_64\fR] [\fB\-\-help\fR] [\fIobjfile\fR...]
|
| 155 |
|
|
.SH "DESCRIPTION"
|
| 156 |
|
|
.IX Header "DESCRIPTION"
|
| 157 |
|
|
\&\s-1GNU\s0 \fBnm\fR lists the symbols from object files \fIobjfile\fR....
|
| 158 |
|
|
If no object files are listed as arguments, \fBnm\fR assumes the file
|
| 159 |
|
|
\&\fIa.out\fR.
|
| 160 |
|
|
.PP
|
| 161 |
|
|
For each symbol, \fBnm\fR shows:
|
| 162 |
|
|
.IP "\(bu" 4
|
| 163 |
|
|
The symbol value, in the radix selected by options (see below), or
|
| 164 |
|
|
hexadecimal by default.
|
| 165 |
|
|
.IP "\(bu" 4
|
| 166 |
|
|
The symbol type. At least the following types are used; others are, as
|
| 167 |
|
|
well, depending on the object file format. If lowercase, the symbol is
|
| 168 |
|
|
local; if uppercase, the symbol is global (external).
|
| 169 |
|
|
.RS 4
|
| 170 |
|
|
.ie n .IP """A""" 4
|
| 171 |
|
|
.el .IP "\f(CWA\fR" 4
|
| 172 |
|
|
.IX Item "A"
|
| 173 |
|
|
The symbol's value is absolute, and will not be changed by further
|
| 174 |
|
|
linking.
|
| 175 |
|
|
.ie n .IP """B""" 4
|
| 176 |
|
|
.el .IP "\f(CWB\fR" 4
|
| 177 |
|
|
.IX Item "B"
|
| 178 |
|
|
.PD 0
|
| 179 |
|
|
.ie n .IP """b""" 4
|
| 180 |
|
|
.el .IP "\f(CWb\fR" 4
|
| 181 |
|
|
.IX Item "b"
|
| 182 |
|
|
.PD
|
| 183 |
|
|
The symbol is in the uninitialized data section (known as \s-1BSS\s0).
|
| 184 |
|
|
.ie n .IP """C""" 4
|
| 185 |
|
|
.el .IP "\f(CWC\fR" 4
|
| 186 |
|
|
.IX Item "C"
|
| 187 |
|
|
The symbol is common. Common symbols are uninitialized data. When
|
| 188 |
|
|
linking, multiple common symbols may appear with the same name. If the
|
| 189 |
|
|
symbol is defined anywhere, the common symbols are treated as undefined
|
| 190 |
|
|
references.
|
| 191 |
|
|
.ie n .IP """D""" 4
|
| 192 |
|
|
.el .IP "\f(CWD\fR" 4
|
| 193 |
|
|
.IX Item "D"
|
| 194 |
|
|
.PD 0
|
| 195 |
|
|
.ie n .IP """d""" 4
|
| 196 |
|
|
.el .IP "\f(CWd\fR" 4
|
| 197 |
|
|
.IX Item "d"
|
| 198 |
|
|
.PD
|
| 199 |
|
|
The symbol is in the initialized data section.
|
| 200 |
|
|
.ie n .IP """G""" 4
|
| 201 |
|
|
.el .IP "\f(CWG\fR" 4
|
| 202 |
|
|
.IX Item "G"
|
| 203 |
|
|
.PD 0
|
| 204 |
|
|
.ie n .IP """g""" 4
|
| 205 |
|
|
.el .IP "\f(CWg\fR" 4
|
| 206 |
|
|
.IX Item "g"
|
| 207 |
|
|
.PD
|
| 208 |
|
|
The symbol is in an initialized data section for small objects. Some
|
| 209 |
|
|
object file formats permit more efficient access to small data objects,
|
| 210 |
|
|
such as a global int variable as opposed to a large global array.
|
| 211 |
|
|
.ie n .IP """i""" 4
|
| 212 |
|
|
.el .IP "\f(CWi\fR" 4
|
| 213 |
|
|
.IX Item "i"
|
| 214 |
|
|
For \s-1PE\s0 format files this indicates that the symbol is in a section
|
| 215 |
|
|
specific to the implementation of DLLs. For \s-1ELF\s0 format files this
|
| 216 |
|
|
indicates that the symbol is an indirect function. This is a \s-1GNU\s0
|
| 217 |
|
|
extension to the standard set of \s-1ELF\s0 symbol types. It indicates a
|
| 218 |
|
|
symbol which if referenced by a relocation does not evaluate to its
|
| 219 |
|
|
address, but instead must be invoked at runtime. The runtime
|
| 220 |
|
|
execution will then return the value to be used in the relocation.
|
| 221 |
|
|
.ie n .IP """N""" 4
|
| 222 |
|
|
.el .IP "\f(CWN\fR" 4
|
| 223 |
|
|
.IX Item "N"
|
| 224 |
|
|
The symbol is a debugging symbol.
|
| 225 |
|
|
.ie n .IP """p""" 4
|
| 226 |
|
|
.el .IP "\f(CWp\fR" 4
|
| 227 |
|
|
.IX Item "p"
|
| 228 |
|
|
The symbols is in a stack unwind section.
|
| 229 |
|
|
.ie n .IP """R""" 4
|
| 230 |
|
|
.el .IP "\f(CWR\fR" 4
|
| 231 |
|
|
.IX Item "R"
|
| 232 |
|
|
.PD 0
|
| 233 |
|
|
.ie n .IP """r""" 4
|
| 234 |
|
|
.el .IP "\f(CWr\fR" 4
|
| 235 |
|
|
.IX Item "r"
|
| 236 |
|
|
.PD
|
| 237 |
|
|
The symbol is in a read only data section.
|
| 238 |
|
|
.ie n .IP """S""" 4
|
| 239 |
|
|
.el .IP "\f(CWS\fR" 4
|
| 240 |
|
|
.IX Item "S"
|
| 241 |
|
|
.PD 0
|
| 242 |
|
|
.ie n .IP """s""" 4
|
| 243 |
|
|
.el .IP "\f(CWs\fR" 4
|
| 244 |
|
|
.IX Item "s"
|
| 245 |
|
|
.PD
|
| 246 |
|
|
The symbol is in an uninitialized data section for small objects.
|
| 247 |
|
|
.ie n .IP """T""" 4
|
| 248 |
|
|
.el .IP "\f(CWT\fR" 4
|
| 249 |
|
|
.IX Item "T"
|
| 250 |
|
|
.PD 0
|
| 251 |
|
|
.ie n .IP """t""" 4
|
| 252 |
|
|
.el .IP "\f(CWt\fR" 4
|
| 253 |
|
|
.IX Item "t"
|
| 254 |
|
|
.PD
|
| 255 |
|
|
The symbol is in the text (code) section.
|
| 256 |
|
|
.ie n .IP """U""" 4
|
| 257 |
|
|
.el .IP "\f(CWU\fR" 4
|
| 258 |
|
|
.IX Item "U"
|
| 259 |
|
|
The symbol is undefined.
|
| 260 |
|
|
.ie n .IP """u""" 4
|
| 261 |
|
|
.el .IP "\f(CWu\fR" 4
|
| 262 |
|
|
.IX Item "u"
|
| 263 |
|
|
The symbol is a unique global symbol. This is a \s-1GNU\s0 extension to the
|
| 264 |
|
|
standard set of \s-1ELF\s0 symbol bindings. For such a symbol the dynamic linker
|
| 265 |
|
|
will make sure that in the entire process there is just one symbol with
|
| 266 |
|
|
this name and type in use.
|
| 267 |
|
|
.ie n .IP """V""" 4
|
| 268 |
|
|
.el .IP "\f(CWV\fR" 4
|
| 269 |
|
|
.IX Item "V"
|
| 270 |
|
|
.PD 0
|
| 271 |
|
|
.ie n .IP """v""" 4
|
| 272 |
|
|
.el .IP "\f(CWv\fR" 4
|
| 273 |
|
|
.IX Item "v"
|
| 274 |
|
|
.PD
|
| 275 |
|
|
The symbol is a weak object. When a weak defined symbol is linked with
|
| 276 |
|
|
a normal defined symbol, the normal defined symbol is used with no error.
|
| 277 |
|
|
When a weak undefined symbol is linked and the symbol is not defined,
|
| 278 |
|
|
the value of the weak symbol becomes zero with no error. On some
|
| 279 |
|
|
systems, uppercase indicates that a default value has been specified.
|
| 280 |
|
|
.ie n .IP """W""" 4
|
| 281 |
|
|
.el .IP "\f(CWW\fR" 4
|
| 282 |
|
|
.IX Item "W"
|
| 283 |
|
|
.PD 0
|
| 284 |
|
|
.ie n .IP """w""" 4
|
| 285 |
|
|
.el .IP "\f(CWw\fR" 4
|
| 286 |
|
|
.IX Item "w"
|
| 287 |
|
|
.PD
|
| 288 |
|
|
The symbol is a weak symbol that has not been specifically tagged as a
|
| 289 |
|
|
weak object symbol. When a weak defined symbol is linked with a normal
|
| 290 |
|
|
defined symbol, the normal defined symbol is used with no error.
|
| 291 |
|
|
When a weak undefined symbol is linked and the symbol is not defined,
|
| 292 |
|
|
the value of the symbol is determined in a system-specific manner without
|
| 293 |
|
|
error. On some systems, uppercase indicates that a default value has been
|
| 294 |
|
|
specified.
|
| 295 |
|
|
.ie n .IP """\-""" 4
|
| 296 |
|
|
.el .IP "\f(CW\-\fR" 4
|
| 297 |
|
|
.IX Item "-"
|
| 298 |
|
|
The symbol is a stabs symbol in an a.out object file. In this case, the
|
| 299 |
|
|
next values printed are the stabs other field, the stabs desc field, and
|
| 300 |
|
|
the stab type. Stabs symbols are used to hold debugging information.
|
| 301 |
|
|
.ie n .IP """?""" 4
|
| 302 |
|
|
.el .IP "\f(CW?\fR" 4
|
| 303 |
|
|
.IX Item "?"
|
| 304 |
|
|
The symbol type is unknown, or object file format specific.
|
| 305 |
|
|
.RE
|
| 306 |
|
|
.RS 4
|
| 307 |
|
|
.RE
|
| 308 |
|
|
.IP "\(bu" 4
|
| 309 |
|
|
The symbol name.
|
| 310 |
|
|
.SH "OPTIONS"
|
| 311 |
|
|
.IX Header "OPTIONS"
|
| 312 |
|
|
The long and short forms of options, shown here as alternatives, are
|
| 313 |
|
|
equivalent.
|
| 314 |
|
|
.IP "\fB\-A\fR" 4
|
| 315 |
|
|
.IX Item "-A"
|
| 316 |
|
|
.PD 0
|
| 317 |
|
|
.IP "\fB\-o\fR" 4
|
| 318 |
|
|
.IX Item "-o"
|
| 319 |
|
|
.IP "\fB\-\-print\-file\-name\fR" 4
|
| 320 |
|
|
.IX Item "--print-file-name"
|
| 321 |
|
|
.PD
|
| 322 |
|
|
Precede each symbol by the name of the input file (or archive member)
|
| 323 |
|
|
in which it was found, rather than identifying the input file once only,
|
| 324 |
|
|
before all of its symbols.
|
| 325 |
|
|
.IP "\fB\-a\fR" 4
|
| 326 |
|
|
.IX Item "-a"
|
| 327 |
|
|
.PD 0
|
| 328 |
|
|
.IP "\fB\-\-debug\-syms\fR" 4
|
| 329 |
|
|
.IX Item "--debug-syms"
|
| 330 |
|
|
.PD
|
| 331 |
|
|
Display all symbols, even debugger-only symbols; normally these are not
|
| 332 |
|
|
listed.
|
| 333 |
|
|
.IP "\fB\-B\fR" 4
|
| 334 |
|
|
.IX Item "-B"
|
| 335 |
|
|
The same as \fB\-\-format=bsd\fR (for compatibility with the \s-1MIPS\s0 \fBnm\fR).
|
| 336 |
|
|
.IP "\fB\-C\fR" 4
|
| 337 |
|
|
.IX Item "-C"
|
| 338 |
|
|
.PD 0
|
| 339 |
|
|
.IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
|
| 340 |
|
|
.IX Item "--demangle[=style]"
|
| 341 |
|
|
.PD
|
| 342 |
|
|
Decode (\fIdemangle\fR) low-level symbol names into user-level names.
|
| 343 |
|
|
Besides removing any initial underscore prepended by the system, this
|
| 344 |
|
|
makes \*(C+ function names readable. Different compilers have different
|
| 345 |
|
|
mangling styles. The optional demangling style argument can be used to
|
| 346 |
|
|
choose an appropriate demangling style for your compiler.
|
| 347 |
|
|
.IP "\fB\-\-no\-demangle\fR" 4
|
| 348 |
|
|
.IX Item "--no-demangle"
|
| 349 |
|
|
Do not demangle low-level symbol names. This is the default.
|
| 350 |
|
|
.IP "\fB\-D\fR" 4
|
| 351 |
|
|
.IX Item "-D"
|
| 352 |
|
|
.PD 0
|
| 353 |
|
|
.IP "\fB\-\-dynamic\fR" 4
|
| 354 |
|
|
.IX Item "--dynamic"
|
| 355 |
|
|
.PD
|
| 356 |
|
|
Display the dynamic symbols rather than the normal symbols. This is
|
| 357 |
|
|
only meaningful for dynamic objects, such as certain types of shared
|
| 358 |
|
|
libraries.
|
| 359 |
|
|
.IP "\fB\-f\fR \fIformat\fR" 4
|
| 360 |
|
|
.IX Item "-f format"
|
| 361 |
|
|
.PD 0
|
| 362 |
|
|
.IP "\fB\-\-format=\fR\fIformat\fR" 4
|
| 363 |
|
|
.IX Item "--format=format"
|
| 364 |
|
|
.PD
|
| 365 |
|
|
Use the output format \fIformat\fR, which can be \f(CW\*(C`bsd\*(C'\fR,
|
| 366 |
|
|
\&\f(CW\*(C`sysv\*(C'\fR, or \f(CW\*(C`posix\*(C'\fR. The default is \f(CW\*(C`bsd\*(C'\fR.
|
| 367 |
|
|
Only the first character of \fIformat\fR is significant; it can be
|
| 368 |
|
|
either upper or lower case.
|
| 369 |
|
|
.IP "\fB\-g\fR" 4
|
| 370 |
|
|
.IX Item "-g"
|
| 371 |
|
|
.PD 0
|
| 372 |
|
|
.IP "\fB\-\-extern\-only\fR" 4
|
| 373 |
|
|
.IX Item "--extern-only"
|
| 374 |
|
|
.PD
|
| 375 |
|
|
Display only external symbols.
|
| 376 |
|
|
.IP "\fB\-\-plugin\fR \fIname\fR" 4
|
| 377 |
|
|
.IX Item "--plugin name"
|
| 378 |
|
|
Load the plugin called \fIname\fR to add support for extra target
|
| 379 |
|
|
types. This option is only available if the toolchain has been built
|
| 380 |
|
|
with plugin support enabled.
|
| 381 |
|
|
.IP "\fB\-l\fR" 4
|
| 382 |
|
|
.IX Item "-l"
|
| 383 |
|
|
.PD 0
|
| 384 |
|
|
.IP "\fB\-\-line\-numbers\fR" 4
|
| 385 |
|
|
.IX Item "--line-numbers"
|
| 386 |
|
|
.PD
|
| 387 |
|
|
For each symbol, use debugging information to try to find a filename and
|
| 388 |
|
|
line number. For a defined symbol, look for the line number of the
|
| 389 |
|
|
address of the symbol. For an undefined symbol, look for the line
|
| 390 |
|
|
number of a relocation entry which refers to the symbol. If line number
|
| 391 |
|
|
information can be found, print it after the other symbol information.
|
| 392 |
|
|
.IP "\fB\-n\fR" 4
|
| 393 |
|
|
.IX Item "-n"
|
| 394 |
|
|
.PD 0
|
| 395 |
|
|
.IP "\fB\-v\fR" 4
|
| 396 |
|
|
.IX Item "-v"
|
| 397 |
|
|
.IP "\fB\-\-numeric\-sort\fR" 4
|
| 398 |
|
|
.IX Item "--numeric-sort"
|
| 399 |
|
|
.PD
|
| 400 |
|
|
Sort symbols numerically by their addresses, rather than alphabetically
|
| 401 |
|
|
by their names.
|
| 402 |
|
|
.IP "\fB\-p\fR" 4
|
| 403 |
|
|
.IX Item "-p"
|
| 404 |
|
|
.PD 0
|
| 405 |
|
|
.IP "\fB\-\-no\-sort\fR" 4
|
| 406 |
|
|
.IX Item "--no-sort"
|
| 407 |
|
|
.PD
|
| 408 |
|
|
Do not bother to sort the symbols in any order; print them in the order
|
| 409 |
|
|
encountered.
|
| 410 |
|
|
.IP "\fB\-P\fR" 4
|
| 411 |
|
|
.IX Item "-P"
|
| 412 |
|
|
.PD 0
|
| 413 |
|
|
.IP "\fB\-\-portability\fR" 4
|
| 414 |
|
|
.IX Item "--portability"
|
| 415 |
|
|
.PD
|
| 416 |
|
|
Use the \s-1POSIX\s0.2 standard output format instead of the default format.
|
| 417 |
|
|
Equivalent to \fB\-f posix\fR.
|
| 418 |
|
|
.IP "\fB\-S\fR" 4
|
| 419 |
|
|
.IX Item "-S"
|
| 420 |
|
|
.PD 0
|
| 421 |
|
|
.IP "\fB\-\-print\-size\fR" 4
|
| 422 |
|
|
.IX Item "--print-size"
|
| 423 |
|
|
.PD
|
| 424 |
|
|
Print both value and size of defined symbols for the \f(CW\*(C`bsd\*(C'\fR output style.
|
| 425 |
|
|
This option has no effect for object formats that do not record symbol
|
| 426 |
|
|
sizes, unless \fB\-\-size\-sort\fR is also used in which case a
|
| 427 |
|
|
calculated size is displayed.
|
| 428 |
|
|
.IP "\fB\-s\fR" 4
|
| 429 |
|
|
.IX Item "-s"
|
| 430 |
|
|
.PD 0
|
| 431 |
|
|
.IP "\fB\-\-print\-armap\fR" 4
|
| 432 |
|
|
.IX Item "--print-armap"
|
| 433 |
|
|
.PD
|
| 434 |
|
|
When listing symbols from archive members, include the index: a mapping
|
| 435 |
|
|
(stored in the archive by \fBar\fR or \fBranlib\fR) of which modules
|
| 436 |
|
|
contain definitions for which names.
|
| 437 |
|
|
.IP "\fB\-r\fR" 4
|
| 438 |
|
|
.IX Item "-r"
|
| 439 |
|
|
.PD 0
|
| 440 |
|
|
.IP "\fB\-\-reverse\-sort\fR" 4
|
| 441 |
|
|
.IX Item "--reverse-sort"
|
| 442 |
|
|
.PD
|
| 443 |
|
|
Reverse the order of the sort (whether numeric or alphabetic); let the
|
| 444 |
|
|
last come first.
|
| 445 |
|
|
.IP "\fB\-\-size\-sort\fR" 4
|
| 446 |
|
|
.IX Item "--size-sort"
|
| 447 |
|
|
Sort symbols by size. The size is computed as the difference between
|
| 448 |
|
|
the value of the symbol and the value of the symbol with the next higher
|
| 449 |
|
|
value. If the \f(CW\*(C`bsd\*(C'\fR output format is used the size of the symbol
|
| 450 |
|
|
is printed, rather than the value, and \fB\-S\fR must be used in order
|
| 451 |
|
|
both size and value to be printed.
|
| 452 |
|
|
.IP "\fB\-\-special\-syms\fR" 4
|
| 453 |
|
|
.IX Item "--special-syms"
|
| 454 |
|
|
Display symbols which have a target-specific special meaning. These
|
| 455 |
|
|
symbols are usually used by the target for some special processing and
|
| 456 |
|
|
are not normally helpful when included included in the normal symbol
|
| 457 |
|
|
lists. For example for \s-1ARM\s0 targets this option would skip the mapping
|
| 458 |
|
|
symbols used to mark transitions between \s-1ARM\s0 code, \s-1THUMB\s0 code and
|
| 459 |
|
|
data.
|
| 460 |
|
|
.IP "\fB\-t\fR \fIradix\fR" 4
|
| 461 |
|
|
.IX Item "-t radix"
|
| 462 |
|
|
.PD 0
|
| 463 |
|
|
.IP "\fB\-\-radix=\fR\fIradix\fR" 4
|
| 464 |
|
|
.IX Item "--radix=radix"
|
| 465 |
|
|
.PD
|
| 466 |
|
|
Use \fIradix\fR as the radix for printing the symbol values. It must be
|
| 467 |
|
|
\&\fBd\fR for decimal, \fBo\fR for octal, or \fBx\fR for hexadecimal.
|
| 468 |
|
|
.IP "\fB\-\-target=\fR\fIbfdname\fR" 4
|
| 469 |
|
|
.IX Item "--target=bfdname"
|
| 470 |
|
|
Specify an object code format other than your system's default format.
|
| 471 |
|
|
.IP "\fB\-u\fR" 4
|
| 472 |
|
|
.IX Item "-u"
|
| 473 |
|
|
.PD 0
|
| 474 |
|
|
.IP "\fB\-\-undefined\-only\fR" 4
|
| 475 |
|
|
.IX Item "--undefined-only"
|
| 476 |
|
|
.PD
|
| 477 |
|
|
Display only undefined symbols (those external to each object file).
|
| 478 |
|
|
.IP "\fB\-\-defined\-only\fR" 4
|
| 479 |
|
|
.IX Item "--defined-only"
|
| 480 |
|
|
Display only defined symbols for each object file.
|
| 481 |
|
|
.IP "\fB\-V\fR" 4
|
| 482 |
|
|
.IX Item "-V"
|
| 483 |
|
|
.PD 0
|
| 484 |
|
|
.IP "\fB\-\-version\fR" 4
|
| 485 |
|
|
.IX Item "--version"
|
| 486 |
|
|
.PD
|
| 487 |
|
|
Show the version number of \fBnm\fR and exit.
|
| 488 |
|
|
.IP "\fB\-X\fR" 4
|
| 489 |
|
|
.IX Item "-X"
|
| 490 |
|
|
This option is ignored for compatibility with the \s-1AIX\s0 version of
|
| 491 |
|
|
\&\fBnm\fR. It takes one parameter which must be the string
|
| 492 |
|
|
\&\fB32_64\fR. The default mode of \s-1AIX\s0 \fBnm\fR corresponds
|
| 493 |
|
|
to \fB\-X 32\fR, which is not supported by \s-1GNU\s0 \fBnm\fR.
|
| 494 |
|
|
.IP "\fB\-\-help\fR" 4
|
| 495 |
|
|
.IX Item "--help"
|
| 496 |
|
|
Show a summary of the options to \fBnm\fR and exit.
|
| 497 |
|
|
.IP "\fB@\fR\fIfile\fR" 4
|
| 498 |
|
|
.IX Item "@file"
|
| 499 |
|
|
Read command-line options from \fIfile\fR. The options read are
|
| 500 |
|
|
inserted in place of the original @\fIfile\fR option. If \fIfile\fR
|
| 501 |
|
|
does not exist, or cannot be read, then the option will be treated
|
| 502 |
|
|
literally, and not removed.
|
| 503 |
|
|
.Sp
|
| 504 |
|
|
Options in \fIfile\fR are separated by whitespace. A whitespace
|
| 505 |
|
|
character may be included in an option by surrounding the entire
|
| 506 |
|
|
option in either single or double quotes. Any character (including a
|
| 507 |
|
|
backslash) may be included by prefixing the character to be included
|
| 508 |
|
|
with a backslash. The \fIfile\fR may itself contain additional
|
| 509 |
|
|
@\fIfile\fR options; any such options will be processed recursively.
|
| 510 |
|
|
.SH "SEE ALSO"
|
| 511 |
|
|
.IX Header "SEE ALSO"
|
| 512 |
|
|
\&\fIar\fR\|(1), \fIobjdump\fR\|(1), \fIranlib\fR\|(1), and the Info entries for \fIbinutils\fR.
|
| 513 |
|
|
.SH "COPYRIGHT"
|
| 514 |
|
|
.IX Header "COPYRIGHT"
|
| 515 |
|
|
Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
| 516 |
|
|
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
| 517 |
|
|
.PP
|
| 518 |
|
|
Permission is granted to copy, distribute and/or modify this document
|
| 519 |
|
|
under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
|
| 520 |
|
|
or any later version published by the Free Software Foundation;
|
| 521 |
|
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
| 522 |
|
|
Back-Cover Texts. A copy of the license is included in the
|
| 523 |
|
|
section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".
|