Merge remote-tracking branch 'origin/vendor/LDNS'
[dragonfly.git] / contrib / binutils-2.25 / binutils / doc / objdump.1
1 .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is turned on, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .nr rF 0
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{
60 .    if \nF \{
61 .        de IX
62 .        tm Index:\\$1\t\\n%\t"\\$2"
63 ..
64 .        if !\nF==2 \{
65 .            nr % 0
66 .            nr F 2
67 .        \}
68 .    \}
69 .\}
70 .rr rF
71 .\"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
74 .    \" fudge factors for nroff and troff
75 .if n \{\
76 .    ds #H 0
77 .    ds #V .8m
78 .    ds #F .3m
79 .    ds #[ \f1
80 .    ds #] \fP
81 .\}
82 .if t \{\
83 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
84 .    ds #V .6m
85 .    ds #F 0
86 .    ds #[ \&
87 .    ds #] \&
88 .\}
89 .    \" simple accents for nroff and troff
90 .if n \{\
91 .    ds ' \&
92 .    ds ` \&
93 .    ds ^ \&
94 .    ds , \&
95 .    ds ~ ~
96 .    ds /
97 .\}
98 .if t \{\
99 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .\}
106 .    \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 .    \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 .    \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
121 \{\
122 .    ds : e
123 .    ds 8 ss
124 .    ds o a
125 .    ds d- d\h'-1'\(ga
126 .    ds D- D\h'-1'\(hy
127 .    ds th \o'bp'
128 .    ds Th \o'LP'
129 .    ds ae ae
130 .    ds Ae AE
131 .\}
132 .rm #[ #] #H #V #F C
133 .\" ========================================================================
134 .\"
135 .IX Title "OBJDUMP 1"
136 .TH OBJDUMP 1 "2014-12-23" "binutils-2.25" "GNU Development Tools"
137 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
139 .if n .ad l
140 .nh
141 .SH "NAME"
142 objdump \- display information from object files.
143 .SH "SYNOPSIS"
144 .IX Header "SYNOPSIS"
145 objdump [\fB\-a\fR|\fB\-\-archive\-headers\fR]
146         [\fB\-b\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR]
147         [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR] ]
148         [\fB\-d\fR|\fB\-\-disassemble\fR]
149         [\fB\-D\fR|\fB\-\-disassemble\-all\fR]
150         [\fB\-z\fR|\fB\-\-disassemble\-zeroes\fR]
151         [\fB\-EB\fR|\fB\-EL\fR|\fB\-\-endian=\fR{big | little }]
152         [\fB\-f\fR|\fB\-\-file\-headers\fR]
153         [\fB\-F\fR|\fB\-\-file\-offsets\fR]
154         [\fB\-\-file\-start\-context\fR]
155         [\fB\-g\fR|\fB\-\-debugging\fR]
156         [\fB\-e\fR|\fB\-\-debugging\-tags\fR]
157         [\fB\-h\fR|\fB\-\-section\-headers\fR|\fB\-\-headers\fR]
158         [\fB\-i\fR|\fB\-\-info\fR]
159         [\fB\-j\fR \fIsection\fR|\fB\-\-section=\fR\fIsection\fR]
160         [\fB\-l\fR|\fB\-\-line\-numbers\fR]
161         [\fB\-S\fR|\fB\-\-source\fR]
162         [\fB\-m\fR \fImachine\fR|\fB\-\-architecture=\fR\fImachine\fR]
163         [\fB\-M\fR \fIoptions\fR|\fB\-\-disassembler\-options=\fR\fIoptions\fR]
164         [\fB\-p\fR|\fB\-\-private\-headers\fR]
165         [\fB\-P\fR \fIoptions\fR|\fB\-\-private=\fR\fIoptions\fR]
166         [\fB\-r\fR|\fB\-\-reloc\fR]
167         [\fB\-R\fR|\fB\-\-dynamic\-reloc\fR]
168         [\fB\-s\fR|\fB\-\-full\-contents\fR]
169         [\fB\-W[lLiaprmfFsoRt]\fR|
170          \fB\-\-dwarf\fR[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]]
171         [\fB\-G\fR|\fB\-\-stabs\fR]
172         [\fB\-t\fR|\fB\-\-syms\fR]
173         [\fB\-T\fR|\fB\-\-dynamic\-syms\fR]
174         [\fB\-x\fR|\fB\-\-all\-headers\fR]
175         [\fB\-w\fR|\fB\-\-wide\fR]
176         [\fB\-\-start\-address=\fR\fIaddress\fR]
177         [\fB\-\-stop\-address=\fR\fIaddress\fR]
178         [\fB\-\-prefix\-addresses\fR]
179         [\fB\-\-[no\-]show\-raw\-insn\fR]
180         [\fB\-\-adjust\-vma=\fR\fIoffset\fR]
181         [\fB\-\-special\-syms\fR]
182         [\fB\-\-prefix=\fR\fIprefix\fR]
183         [\fB\-\-prefix\-strip=\fR\fIlevel\fR]
184         [\fB\-\-insn\-width=\fR\fIwidth\fR]
185         [\fB\-V\fR|\fB\-\-version\fR]
186         [\fB\-H\fR|\fB\-\-help\fR]
187         \fIobjfile\fR...
188 .SH "DESCRIPTION"
189 .IX Header "DESCRIPTION"
190 \&\fBobjdump\fR displays information about one or more object files.
191 The options control what particular information to display.  This
192 information is mostly useful to programmers who are working on the
193 compilation tools, as opposed to programmers who just want their
194 program to compile and work.
195 .PP
196 \&\fIobjfile\fR... are the object files to be examined.  When you
197 specify archives, \fBobjdump\fR shows information on each of the member
198 object files.
199 .SH "OPTIONS"
200 .IX Header "OPTIONS"
201 The long and short forms of options, shown here as alternatives, are
202 equivalent.  At least one option from the list
203 \&\fB\-a,\-d,\-D,\-e,\-f,\-g,\-G,\-h,\-H,\-p,\-P,\-r,\-R,\-s,\-S,\-t,\-T,\-V,\-x\fR must be given.
204 .IP "\fB\-a\fR" 4
205 .IX Item "-a"
206 .PD 0
207 .IP "\fB\-\-archive\-header\fR" 4
208 .IX Item "--archive-header"
209 .PD
210 If any of the \fIobjfile\fR files are archives, display the archive
211 header information (in a format similar to \fBls \-l\fR).  Besides the
212 information you could list with \fBar tv\fR, \fBobjdump \-a\fR shows
213 the object file format of each archive member.
214 .IP "\fB\-\-adjust\-vma=\fR\fIoffset\fR" 4
215 .IX Item "--adjust-vma=offset"
216 When dumping information, first add \fIoffset\fR to all the section
217 addresses.  This is useful if the section addresses do not correspond to
218 the symbol table, which can happen when putting sections at particular
219 addresses when using a format which can not represent section addresses,
220 such as a.out.
221 .IP "\fB\-b\fR \fIbfdname\fR" 4
222 .IX Item "-b bfdname"
223 .PD 0
224 .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
225 .IX Item "--target=bfdname"
226 .PD
227 Specify that the object-code format for the object files is
228 \&\fIbfdname\fR.  This option may not be necessary; \fIobjdump\fR can
229 automatically recognize many formats.
230 .Sp
231 For example,
232 .Sp
233 .Vb 1
234 \&        objdump \-b oasys \-m vax \-h fu.o
235 .Ve
236 .Sp
237 displays summary information from the section headers (\fB\-h\fR) of
238 \&\fIfu.o\fR, which is explicitly identified (\fB\-m\fR) as a \s-1VAX\s0 object
239 file in the format produced by Oasys compilers.  You can list the
240 formats available with the \fB\-i\fR option.
241 .IP "\fB\-C\fR" 4
242 .IX Item "-C"
243 .PD 0
244 .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
245 .IX Item "--demangle[=style]"
246 .PD
247 Decode (\fIdemangle\fR) low-level symbol names into user-level names.
248 Besides removing any initial underscore prepended by the system, this
249 makes \*(C+ function names readable.  Different compilers have different
250 mangling styles. The optional demangling style argument can be used to
251 choose an appropriate demangling style for your compiler.
252 .IP "\fB\-g\fR" 4
253 .IX Item "-g"
254 .PD 0
255 .IP "\fB\-\-debugging\fR" 4
256 .IX Item "--debugging"
257 .PD
258 Display debugging information.  This attempts to parse \s-1STABS\s0 and \s-1IEEE\s0
259 debugging format information stored in the file and print it out using
260 a C like syntax.  If neither of these formats are found this option
261 falls back on the \fB\-W\fR option to print any \s-1DWARF\s0 information in
262 the file.
263 .IP "\fB\-e\fR" 4
264 .IX Item "-e"
265 .PD 0
266 .IP "\fB\-\-debugging\-tags\fR" 4
267 .IX Item "--debugging-tags"
268 .PD
269 Like \fB\-g\fR, but the information is generated in a format compatible
270 with ctags tool.
271 .IP "\fB\-d\fR" 4
272 .IX Item "-d"
273 .PD 0
274 .IP "\fB\-\-disassemble\fR" 4
275 .IX Item "--disassemble"
276 .PD
277 Display the assembler mnemonics for the machine instructions from
278 \&\fIobjfile\fR.  This option only disassembles those sections which are
279 expected to contain instructions.
280 .IP "\fB\-D\fR" 4
281 .IX Item "-D"
282 .PD 0
283 .IP "\fB\-\-disassemble\-all\fR" 4
284 .IX Item "--disassemble-all"
285 .PD
286 Like \fB\-d\fR, but disassemble the contents of all sections, not just
287 those expected to contain instructions.
288 .Sp
289 If the target is an \s-1ARM\s0 architecture this switch also has the effect
290 of forcing the disassembler to decode pieces of data found in code
291 sections as if they were instructions.
292 .IP "\fB\-\-prefix\-addresses\fR" 4
293 .IX Item "--prefix-addresses"
294 When disassembling, print the complete address on each line.  This is
295 the older disassembly format.
296 .IP "\fB\-EB\fR" 4
297 .IX Item "-EB"
298 .PD 0
299 .IP "\fB\-EL\fR" 4
300 .IX Item "-EL"
301 .IP "\fB\-\-endian={big|little}\fR" 4
302 .IX Item "--endian={big|little}"
303 .PD
304 Specify the endianness of the object files.  This only affects
305 disassembly.  This can be useful when disassembling a file format which
306 does not describe endianness information, such as S\-records.
307 .IP "\fB\-f\fR" 4
308 .IX Item "-f"
309 .PD 0
310 .IP "\fB\-\-file\-headers\fR" 4
311 .IX Item "--file-headers"
312 .PD
313 Display summary information from the overall header of
314 each of the \fIobjfile\fR files.
315 .IP "\fB\-F\fR" 4
316 .IX Item "-F"
317 .PD 0
318 .IP "\fB\-\-file\-offsets\fR" 4
319 .IX Item "--file-offsets"
320 .PD
321 When disassembling sections, whenever a symbol is displayed, also
322 display the file offset of the region of data that is about to be
323 dumped.  If zeroes are being skipped, then when disassembly resumes,
324 tell the user how many zeroes were skipped and the file offset of the
325 location from where the disassembly resumes.  When dumping sections,
326 display the file offset of the location from where the dump starts.
327 .IP "\fB\-\-file\-start\-context\fR" 4
328 .IX Item "--file-start-context"
329 Specify that when displaying interlisted source code/disassembly
330 (assumes \fB\-S\fR) from a file that has not yet been displayed, extend the
331 context to the start of the file.
332 .IP "\fB\-h\fR" 4
333 .IX Item "-h"
334 .PD 0
335 .IP "\fB\-\-section\-headers\fR" 4
336 .IX Item "--section-headers"
337 .IP "\fB\-\-headers\fR" 4
338 .IX Item "--headers"
339 .PD
340 Display summary information from the section headers of the
341 object file.
342 .Sp
343 File segments may be relocated to nonstandard addresses, for example by
344 using the \fB\-Ttext\fR, \fB\-Tdata\fR, or \fB\-Tbss\fR options to
345 \&\fBld\fR.  However, some object file formats, such as a.out, do not
346 store the starting address of the file segments.  In those situations,
347 although \fBld\fR relocates the sections correctly, using \fBobjdump
348 \&\-h\fR to list the file section headers cannot show the correct addresses.
349 Instead, it shows the usual addresses, which are implicit for the
350 target.
351 .IP "\fB\-H\fR" 4
352 .IX Item "-H"
353 .PD 0
354 .IP "\fB\-\-help\fR" 4
355 .IX Item "--help"
356 .PD
357 Print a summary of the options to \fBobjdump\fR and exit.
358 .IP "\fB\-i\fR" 4
359 .IX Item "-i"
360 .PD 0
361 .IP "\fB\-\-info\fR" 4
362 .IX Item "--info"
363 .PD
364 Display a list showing all architectures and object formats available
365 for specification with \fB\-b\fR or \fB\-m\fR.
366 .IP "\fB\-j\fR \fIname\fR" 4
367 .IX Item "-j name"
368 .PD 0
369 .IP "\fB\-\-section=\fR\fIname\fR" 4
370 .IX Item "--section=name"
371 .PD
372 Display information only for section \fIname\fR.
373 .IP "\fB\-l\fR" 4
374 .IX Item "-l"
375 .PD 0
376 .IP "\fB\-\-line\-numbers\fR" 4
377 .IX Item "--line-numbers"
378 .PD
379 Label the display (using debugging information) with the filename and
380 source line numbers corresponding to the object code or relocs shown.
381 Only useful with \fB\-d\fR, \fB\-D\fR, or \fB\-r\fR.
382 .IP "\fB\-m\fR \fImachine\fR" 4
383 .IX Item "-m machine"
384 .PD 0
385 .IP "\fB\-\-architecture=\fR\fImachine\fR" 4
386 .IX Item "--architecture=machine"
387 .PD
388 Specify the architecture to use when disassembling object files.  This
389 can be useful when disassembling object files which do not describe
390 architecture information, such as S\-records.  You can list the available
391 architectures with the \fB\-i\fR option.
392 .Sp
393 If the target is an \s-1ARM\s0 architecture then this switch has an
394 additional effect.  It restricts the disassembly to only those
395 instructions supported by the architecture specified by \fImachine\fR.
396 If it is necessary to use this switch because the input file does not
397 contain any architecture information, but it is also desired to
398 disassemble all the instructions use \fB\-marm\fR.
399 .IP "\fB\-M\fR \fIoptions\fR" 4
400 .IX Item "-M options"
401 .PD 0
402 .IP "\fB\-\-disassembler\-options=\fR\fIoptions\fR" 4
403 .IX Item "--disassembler-options=options"
404 .PD
405 Pass target specific information to the disassembler.  Only supported on
406 some targets.  If it is necessary to specify more than one
407 disassembler option then multiple \fB\-M\fR options can be used or
408 can be placed together into a comma separated list.
409 .Sp
410 If the target is an \s-1ARM\s0 architecture then this switch can be used to
411 select which register name set is used during disassembler.  Specifying
412 \&\fB\-M reg-names-std\fR (the default) will select the register names as
413 used in \s-1ARM\s0's instruction set documentation, but with register 13 called
414 \&'sp', register 14 called 'lr' and register 15 called 'pc'.  Specifying
415 \&\fB\-M reg-names-apcs\fR will select the name set used by the \s-1ARM\s0
416 Procedure Call Standard, whilst specifying \fB\-M reg-names-raw\fR will
417 just use \fBr\fR followed by the register number.
418 .Sp
419 There are also two variants on the \s-1APCS\s0 register naming scheme enabled
420 by \fB\-M reg-names-atpcs\fR and \fB\-M reg-names-special-atpcs\fR which
421 use the ARM/Thumb Procedure Call Standard naming conventions.  (Either
422 with the normal register names or the special register names).
423 .Sp
424 This option can also be used for \s-1ARM\s0 architectures to force the
425 disassembler to interpret all instructions as Thumb instructions by
426 using the switch \fB\-\-disassembler\-options=force\-thumb\fR.  This can be
427 useful when attempting to disassemble thumb code produced by other
428 compilers.
429 .Sp
430 For the x86, some of the options duplicate functions of the \fB\-m\fR
431 switch, but allow finer grained control.  Multiple selections from the
432 following may be specified as a comma separated string.
433 \&\fBx86\-64\fR, \fBi386\fR and \fBi8086\fR select disassembly for
434 the given architecture.  \fBintel\fR and \fBatt\fR select between
435 intel syntax mode and \s-1AT&T\s0 syntax mode.
436 \&\fBintel-mnemonic\fR and \fBatt-mnemonic\fR select between
437 intel mnemonic mode and \s-1AT&T\s0 mnemonic mode. \fBintel-mnemonic\fR
438 implies \fBintel\fR and \fBatt-mnemonic\fR implies \fBatt\fR.
439 \&\fBaddr64\fR, \fBaddr32\fR,
440 \&\fBaddr16\fR, \fBdata32\fR and \fBdata16\fR specify the default
441 address size and operand size.  These four options will be overridden if
442 \&\fBx86\-64\fR, \fBi386\fR or \fBi8086\fR appear later in the
443 option string.  Lastly, \fBsuffix\fR, when in \s-1AT&T\s0 mode,
444 instructs the disassembler to print a mnemonic suffix even when the
445 suffix could be inferred by the operands.
446 .Sp
447 For PowerPC, \fBbooke\fR controls the disassembly of BookE
448 instructions.  \fB32\fR and \fB64\fR select PowerPC and
449 PowerPC64 disassembly, respectively.  \fBe300\fR selects
450 disassembly for the e300 family.  \fB440\fR selects disassembly for
451 the PowerPC 440.  \fBppcps\fR selects disassembly for the paired
452 single instructions of the \s-1PPC750CL.\s0
453 .Sp
454 For \s-1MIPS,\s0 this option controls the printing of instruction mnemonic
455 names and register names in disassembled instructions.  Multiple
456 selections from the following may be specified as a comma separated
457 string, and invalid options are ignored:
458 .RS 4
459 .ie n .IP """no\-aliases""" 4
460 .el .IP "\f(CWno\-aliases\fR" 4
461 .IX Item "no-aliases"
462 Print the 'raw' instruction mnemonic instead of some pseudo
463 instruction mnemonic.  I.e., print 'daddu' or 'or' instead of 'move',
464 \&'sll' instead of 'nop', etc.
465 .ie n .IP """msa""" 4
466 .el .IP "\f(CWmsa\fR" 4
467 .IX Item "msa"
468 Disassemble \s-1MSA\s0 instructions.
469 .ie n .IP """virt""" 4
470 .el .IP "\f(CWvirt\fR" 4
471 .IX Item "virt"
472 Disassemble the virtualization \s-1ASE\s0 instructions.
473 .ie n .IP """xpa""" 4
474 .el .IP "\f(CWxpa\fR" 4
475 .IX Item "xpa"
476 Disassemble the eXtended Physical Address (\s-1XPA\s0) \s-1ASE\s0 instructions.
477 .ie n .IP """gpr\-names=\f(CIABI\f(CW""" 4
478 .el .IP "\f(CWgpr\-names=\f(CIABI\f(CW\fR" 4
479 .IX Item "gpr-names=ABI"
480 Print \s-1GPR \s0(general-purpose register) names as appropriate
481 for the specified \s-1ABI. \s0 By default, \s-1GPR\s0 names are selected according to
482 the \s-1ABI\s0 of the binary being disassembled.
483 .ie n .IP """fpr\-names=\f(CIABI\f(CW""" 4
484 .el .IP "\f(CWfpr\-names=\f(CIABI\f(CW\fR" 4
485 .IX Item "fpr-names=ABI"
486 Print \s-1FPR \s0(floating-point register) names as
487 appropriate for the specified \s-1ABI. \s0 By default, \s-1FPR\s0 numbers are printed
488 rather than names.
489 .ie n .IP """cp0\-names=\f(CIARCH\f(CW""" 4
490 .el .IP "\f(CWcp0\-names=\f(CIARCH\f(CW\fR" 4
491 .IX Item "cp0-names=ARCH"
492 Print \s-1CP0 \s0(system control coprocessor; coprocessor 0) register names
493 as appropriate for the \s-1CPU\s0 or architecture specified by
494 \&\fI\s-1ARCH\s0\fR.  By default, \s-1CP0\s0 register names are selected according to
495 the architecture and \s-1CPU\s0 of the binary being disassembled.
496 .ie n .IP """hwr\-names=\f(CIARCH\f(CW""" 4
497 .el .IP "\f(CWhwr\-names=\f(CIARCH\f(CW\fR" 4
498 .IX Item "hwr-names=ARCH"
499 Print \s-1HWR \s0(hardware register, used by the \f(CW\*(C`rdhwr\*(C'\fR instruction) names
500 as appropriate for the \s-1CPU\s0 or architecture specified by
501 \&\fI\s-1ARCH\s0\fR.  By default, \s-1HWR\s0 names are selected according to
502 the architecture and \s-1CPU\s0 of the binary being disassembled.
503 .ie n .IP """reg\-names=\f(CIABI\f(CW""" 4
504 .el .IP "\f(CWreg\-names=\f(CIABI\f(CW\fR" 4
505 .IX Item "reg-names=ABI"
506 Print \s-1GPR\s0 and \s-1FPR\s0 names as appropriate for the selected \s-1ABI.\s0
507 .ie n .IP """reg\-names=\f(CIARCH\f(CW""" 4
508 .el .IP "\f(CWreg\-names=\f(CIARCH\f(CW\fR" 4
509 .IX Item "reg-names=ARCH"
510 Print CPU-specific register names (\s-1CP0\s0 register and \s-1HWR\s0 names)
511 as appropriate for the selected \s-1CPU\s0 or architecture.
512 .RE
513 .RS 4
514 .Sp
515 For any of the options listed above, \fI\s-1ABI\s0\fR or
516 \&\fI\s-1ARCH\s0\fR may be specified as \fBnumeric\fR to have numbers printed
517 rather than names, for the selected types of registers.
518 You can list the available values of \fI\s-1ABI\s0\fR and \fI\s-1ARCH\s0\fR using
519 the \fB\-\-help\fR option.
520 .Sp
521 For \s-1VAX,\s0 you can specify function entry addresses with \fB\-M
522 entry:0xf00ba\fR.  You can use this multiple times to properly
523 disassemble \s-1VAX\s0 binary files that don't contain symbol tables (like
524 \&\s-1ROM\s0 dumps).  In these cases, the function entry mask would otherwise
525 be decoded as \s-1VAX\s0 instructions, which would probably lead the rest
526 of the function being wrongly disassembled.
527 .RE
528 .IP "\fB\-p\fR" 4
529 .IX Item "-p"
530 .PD 0
531 .IP "\fB\-\-private\-headers\fR" 4
532 .IX Item "--private-headers"
533 .PD
534 Print information that is specific to the object file format.  The exact
535 information printed depends upon the object file format.  For some
536 object file formats, no additional information is printed.
537 .IP "\fB\-P\fR \fIoptions\fR" 4
538 .IX Item "-P options"
539 .PD 0
540 .IP "\fB\-\-private=\fR\fIoptions\fR" 4
541 .IX Item "--private=options"
542 .PD
543 Print information that is specific to the object file format.  The
544 argument \fIoptions\fR is a comma separated list that depends on the
545 format (the lists of options is displayed with the help).
546 .Sp
547 For \s-1XCOFF,\s0 the available options are: \fBheader\fR, \fBaout\fR,
548 \&\fBsections\fR, \fBsyms\fR, \fBrelocs\fR, \fBlineno\fR,
549 \&\fBloader\fR, \fBexcept\fR, \fBtypchk\fR, \fBtraceback\fR,
550 \&\fBtoc\fR and \fBldinfo\fR.
551 .IP "\fB\-r\fR" 4
552 .IX Item "-r"
553 .PD 0
554 .IP "\fB\-\-reloc\fR" 4
555 .IX Item "--reloc"
556 .PD
557 Print the relocation entries of the file.  If used with \fB\-d\fR or
558 \&\fB\-D\fR, the relocations are printed interspersed with the
559 disassembly.
560 .IP "\fB\-R\fR" 4
561 .IX Item "-R"
562 .PD 0
563 .IP "\fB\-\-dynamic\-reloc\fR" 4
564 .IX Item "--dynamic-reloc"
565 .PD
566 Print the dynamic relocation entries of the file.  This is only
567 meaningful for dynamic objects, such as certain types of shared
568 libraries.  As for \fB\-r\fR, if used with \fB\-d\fR or
569 \&\fB\-D\fR, the relocations are printed interspersed with the
570 disassembly.
571 .IP "\fB\-s\fR" 4
572 .IX Item "-s"
573 .PD 0
574 .IP "\fB\-\-full\-contents\fR" 4
575 .IX Item "--full-contents"
576 .PD
577 Display the full contents of any sections requested.  By default all
578 non-empty sections are displayed.
579 .IP "\fB\-S\fR" 4
580 .IX Item "-S"
581 .PD 0
582 .IP "\fB\-\-source\fR" 4
583 .IX Item "--source"
584 .PD
585 Display source code intermixed with disassembly, if possible.  Implies
586 \&\fB\-d\fR.
587 .IP "\fB\-\-prefix=\fR\fIprefix\fR" 4
588 .IX Item "--prefix=prefix"
589 Specify \fIprefix\fR to add to the absolute paths when used with
590 \&\fB\-S\fR.
591 .IP "\fB\-\-prefix\-strip=\fR\fIlevel\fR" 4
592 .IX Item "--prefix-strip=level"
593 Indicate how many initial directory names to strip off the hardwired
594 absolute paths. It has no effect without \fB\-\-prefix=\fR\fIprefix\fR.
595 .IP "\fB\-\-show\-raw\-insn\fR" 4
596 .IX Item "--show-raw-insn"
597 When disassembling instructions, print the instruction in hex as well as
598 in symbolic form.  This is the default except when
599 \&\fB\-\-prefix\-addresses\fR is used.
600 .IP "\fB\-\-no\-show\-raw\-insn\fR" 4
601 .IX Item "--no-show-raw-insn"
602 When disassembling instructions, do not print the instruction bytes.
603 This is the default when \fB\-\-prefix\-addresses\fR is used.
604 .IP "\fB\-\-insn\-width=\fR\fIwidth\fR" 4
605 .IX Item "--insn-width=width"
606 Display \fIwidth\fR bytes on a single line when disassembling
607 instructions.
608 .IP "\fB\-W[lLiaprmfFsoRt]\fR" 4
609 .IX Item "-W[lLiaprmfFsoRt]"
610 .PD 0
611 .IP "\fB\-\-dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]\fR" 4
612 .IX Item "--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index]"
613 .PD
614 Displays the contents of the debug sections in the file, if any are
615 present.  If one of the optional letters or words follows the switch
616 then only data found in those specific sections will be dumped.
617 .Sp
618 Note that there is no single letter option to display the content of
619 trace sections or .gdb_index.
620 .Sp
621 Note: the output from the \fB=info\fR option can also be affected
622 by the options \fB\-\-dwarf\-depth\fR, the \fB\-\-dwarf\-start\fR and
623 the \fB\-\-dwarf\-check\fR.
624 .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
625 .IX Item "--dwarf-depth=n"
626 Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
627 This is only useful with \fB\-\-dwarf=info\fR.  The default is
628 to print all DIEs; the special value 0 for \fIn\fR will also have this
629 effect.
630 .Sp
631 With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
632 levels will not be printed.  The range for \fIn\fR is zero-based.
633 .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
634 .IX Item "--dwarf-start=n"
635 Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR.  This is only
636 useful with \fB\-\-dwarf=info\fR.
637 .Sp
638 If specified, this option will suppress printing of any header
639 information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR.  Only
640 siblings and children of the specified \s-1DIE\s0 will be printed.
641 .Sp
642 This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
643 .IP "\fB\-\-dwarf\-check\fR" 4
644 .IX Item "--dwarf-check"
645 Enable additional checks for consistency of Dwarf information.
646 .IP "\fB\-G\fR" 4
647 .IX Item "-G"
648 .PD 0
649 .IP "\fB\-\-stabs\fR" 4
650 .IX Item "--stabs"
651 .PD
652 Display the full contents of any sections requested.  Display the
653 contents of the .stab and .stab.index and .stab.excl sections from an
654 \&\s-1ELF\s0 file.  This is only useful on systems (such as Solaris 2.0) in which
655 \&\f(CW\*(C`.stab\*(C'\fR debugging symbol-table entries are carried in an \s-1ELF\s0
656 section.  In most other file formats, debugging symbol-table entries are
657 interleaved with linkage symbols, and are visible in the \fB\-\-syms\fR
658 output.
659 .IP "\fB\-\-start\-address=\fR\fIaddress\fR" 4
660 .IX Item "--start-address=address"
661 Start displaying data at the specified address.  This affects the output
662 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
663 .IP "\fB\-\-stop\-address=\fR\fIaddress\fR" 4
664 .IX Item "--stop-address=address"
665 Stop displaying data at the specified address.  This affects the output
666 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
667 .IP "\fB\-t\fR" 4
668 .IX Item "-t"
669 .PD 0
670 .IP "\fB\-\-syms\fR" 4
671 .IX Item "--syms"
672 .PD
673 Print the symbol table entries of the file.
674 This is similar to the information provided by the \fBnm\fR program,
675 although the display format is different.  The format of the output
676 depends upon the format of the file being dumped, but there are two main
677 types.  One looks like this:
678 .Sp
679 .Vb 2
680 \&        [  4](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .bss
681 \&        [  6](sec  1)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 fred
682 .Ve
683 .Sp
684 where the number inside the square brackets is the number of the entry
685 in the symbol table, the \fIsec\fR number is the section number, the
686 \&\fIfl\fR value are the symbol's flag bits, the \fIty\fR number is the
687 symbol's type, the \fIscl\fR number is the symbol's storage class and
688 the \fInx\fR value is the number of auxilary entries associated with
689 the symbol.  The last two fields are the symbol's value and its name.
690 .Sp
691 The other common output format, usually seen with \s-1ELF\s0 based files,
692 looks like this:
693 .Sp
694 .Vb 2
695 \&        00000000 l    d  .bss   00000000 .bss
696 \&        00000000 g       .text  00000000 fred
697 .Ve
698 .Sp
699 Here the first number is the symbol's value (sometimes refered to as
700 its address).  The next field is actually a set of characters and
701 spaces indicating the flag bits that are set on the symbol.  These
702 characters are described below.  Next is the section with which the
703 symbol is associated or \fI*ABS*\fR if the section is absolute (ie
704 not connected with any section), or \fI*UND*\fR if the section is
705 referenced in the file being dumped, but not defined there.
706 .Sp
707 After the section name comes another field, a number, which for common
708 symbols is the alignment and for other symbol is the size.  Finally
709 the symbol's name is displayed.
710 .Sp
711 The flag characters are divided into 7 groups as follows:
712 .RS 4
713 .ie n .IP """l""" 4
714 .el .IP "\f(CWl\fR" 4
715 .IX Item "l"
716 .PD 0
717 .ie n .IP """g""" 4
718 .el .IP "\f(CWg\fR" 4
719 .IX Item "g"
720 .ie n .IP """u""" 4
721 .el .IP "\f(CWu\fR" 4
722 .IX Item "u"
723 .ie n .IP """!""" 4
724 .el .IP "\f(CW!\fR" 4
725 .IX Item "!"
726 .PD
727 The symbol is a local (l), global (g), unique global (u), neither
728 global nor local (a space) or both global and local (!).  A
729 symbol can be neither local or global for a variety of reasons, e.g.,
730 because it is used for debugging, but it is probably an indication of
731 a bug if it is ever both local and global.  Unique global symbols are
732 a \s-1GNU\s0 extension to the standard set of \s-1ELF\s0 symbol bindings.  For such
733 a symbol the dynamic linker will make sure that in the entire process
734 there is just one symbol with this name and type in use.
735 .ie n .IP """w""" 4
736 .el .IP "\f(CWw\fR" 4
737 .IX Item "w"
738 The symbol is weak (w) or strong (a space).
739 .ie n .IP """C""" 4
740 .el .IP "\f(CWC\fR" 4
741 .IX Item "C"
742 The symbol denotes a constructor (C) or an ordinary symbol (a space).
743 .ie n .IP """W""" 4
744 .el .IP "\f(CWW\fR" 4
745 .IX Item "W"
746 The symbol is a warning (W) or a normal symbol (a space).  A warning
747 symbol's name is a message to be displayed if the symbol following the
748 warning symbol is ever referenced.
749 .ie n .IP """I""" 4
750 .el .IP "\f(CWI\fR" 4
751 .IX Item "I"
752 .PD 0
753 .ie n .IP """i""" 4
754 .el .IP "\f(CWi\fR" 4
755 .IX Item "i"
756 .PD
757 The symbol is an indirect reference to another symbol (I), a function
758 to be evaluated during reloc processing (i) or a normal symbol (a
759 space).
760 .ie n .IP """d""" 4
761 .el .IP "\f(CWd\fR" 4
762 .IX Item "d"
763 .PD 0
764 .ie n .IP """D""" 4
765 .el .IP "\f(CWD\fR" 4
766 .IX Item "D"
767 .PD
768 The symbol is a debugging symbol (d) or a dynamic symbol (D) or a
769 normal symbol (a space).
770 .ie n .IP """F""" 4
771 .el .IP "\f(CWF\fR" 4
772 .IX Item "F"
773 .PD 0
774 .ie n .IP """f""" 4
775 .el .IP "\f(CWf\fR" 4
776 .IX Item "f"
777 .ie n .IP """O""" 4
778 .el .IP "\f(CWO\fR" 4
779 .IX Item "O"
780 .PD
781 The symbol is the name of a function (F) or a file (f) or an object
782 (O) or just a normal symbol (a space).
783 .RE
784 .RS 4
785 .RE
786 .IP "\fB\-T\fR" 4
787 .IX Item "-T"
788 .PD 0
789 .IP "\fB\-\-dynamic\-syms\fR" 4
790 .IX Item "--dynamic-syms"
791 .PD
792 Print the dynamic symbol table entries of the file.  This is only
793 meaningful for dynamic objects, such as certain types of shared
794 libraries.  This is similar to the information provided by the \fBnm\fR
795 program when given the \fB\-D\fR (\fB\-\-dynamic\fR) option.
796 .IP "\fB\-\-special\-syms\fR" 4
797 .IX Item "--special-syms"
798 When displaying symbols include those which the target considers to be
799 special in some way and which would not normally be of interest to the
800 user.
801 .IP "\fB\-V\fR" 4
802 .IX Item "-V"
803 .PD 0
804 .IP "\fB\-\-version\fR" 4
805 .IX Item "--version"
806 .PD
807 Print the version number of \fBobjdump\fR and exit.
808 .IP "\fB\-x\fR" 4
809 .IX Item "-x"
810 .PD 0
811 .IP "\fB\-\-all\-headers\fR" 4
812 .IX Item "--all-headers"
813 .PD
814 Display all available header information, including the symbol table and
815 relocation entries.  Using \fB\-x\fR is equivalent to specifying all of
816 \&\fB\-a \-f \-h \-p \-r \-t\fR.
817 .IP "\fB\-w\fR" 4
818 .IX Item "-w"
819 .PD 0
820 .IP "\fB\-\-wide\fR" 4
821 .IX Item "--wide"
822 .PD
823 Format some lines for output devices that have more than 80 columns.
824 Also do not truncate symbol names when they are displayed.
825 .IP "\fB\-z\fR" 4
826 .IX Item "-z"
827 .PD 0
828 .IP "\fB\-\-disassemble\-zeroes\fR" 4
829 .IX Item "--disassemble-zeroes"
830 .PD
831 Normally the disassembly output will skip blocks of zeroes.  This
832 option directs the disassembler to disassemble those blocks, just like
833 any other data.
834 .IP "\fB@\fR\fIfile\fR" 4
835 .IX Item "@file"
836 Read command-line options from \fIfile\fR.  The options read are
837 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
838 does not exist, or cannot be read, then the option will be treated
839 literally, and not removed.
840 .Sp
841 Options in \fIfile\fR are separated by whitespace.  A whitespace
842 character may be included in an option by surrounding the entire
843 option in either single or double quotes.  Any character (including a
844 backslash) may be included by prefixing the character to be included
845 with a backslash.  The \fIfile\fR may itself contain additional
846 @\fIfile\fR options; any such options will be processed recursively.
847 .SH "SEE ALSO"
848 .IX Header "SEE ALSO"
849 \&\fInm\fR\|(1), \fIreadelf\fR\|(1), and the Info entries for \fIbinutils\fR.
850 .SH "COPYRIGHT"
851 .IX Header "COPYRIGHT"
852 Copyright (c) 1991\-2014 Free Software Foundation, Inc.
853 .PP
854 Permission is granted to copy, distribute and/or modify this document
855 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
856 or any later version published by the Free Software Foundation;
857 with no Invariant Sections, with no Front-Cover Texts, and with no
858 Back-Cover Texts.  A copy of the license is included in the
859 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".