OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [binutils/] [doc/] [nm.1] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.