]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/usr.bin/binutils/objdump/objdump.1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / usr.bin / binutils / objdump / objdump.1
1 .\" $FreeBSD$
2 .\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" Set up some character translations and predefined strings.  \*(-- will
20 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
21 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
22 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
23 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
24 .\" nothing in troff, for use with C<>.
25 .tr \(*W-
26 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
27 .ie n \{\
28 .    ds -- \(*W-
29 .    ds PI pi
30 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
31 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
32 .    ds L" ""
33 .    ds R" ""
34 .    ds C` ""
35 .    ds C' ""
36 'br\}
37 .el\{\
38 .    ds -- \|\(em\|
39 .    ds PI \(*p
40 .    ds L" ``
41 .    ds R" ''
42 'br\}
43 .\"
44 .\" Escape single quotes in literal strings from groff's Unicode transform.
45 .ie \n(.g .ds Aq \(aq
46 .el       .ds Aq '
47 .\"
48 .\" If the F register is turned on, we'll generate index entries on stderr for
49 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
50 .\" entries marked with X<> in POD.  Of course, you'll have to process the
51 .\" output yourself in some meaningful fashion.
52 .ie \nF \{\
53 .    de IX
54 .    tm Index:\\$1\t\\n%\t"\\$2"
55 ..
56 .    nr % 0
57 .    rr F
58 .\}
59 .el \{\
60 .    de IX
61 ..
62 .\}
63 .\"
64 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
65 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
66 .    \" fudge factors for nroff and troff
67 .if n \{\
68 .    ds #H 0
69 .    ds #V .8m
70 .    ds #F .3m
71 .    ds #[ \f1
72 .    ds #] \fP
73 .\}
74 .if t \{\
75 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
76 .    ds #V .6m
77 .    ds #F 0
78 .    ds #[ \&
79 .    ds #] \&
80 .\}
81 .    \" simple accents for nroff and troff
82 .if n \{\
83 .    ds ' \&
84 .    ds ` \&
85 .    ds ^ \&
86 .    ds , \&
87 .    ds ~ ~
88 .    ds /
89 .\}
90 .if t \{\
91 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
92 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
93 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
94 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
95 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
96 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
97 .\}
98 .    \" troff and (daisy-wheel) nroff accents
99 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
100 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
101 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
102 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
103 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
104 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
105 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
106 .ds ae a\h'-(\w'a'u*4/10)'e
107 .ds Ae A\h'-(\w'A'u*4/10)'E
108 .    \" corrections for vroff
109 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
110 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
111 .    \" for low resolution devices (crt and lpr)
112 .if \n(.H>23 .if \n(.V>19 \
113 \{\
114 .    ds : e
115 .    ds 8 ss
116 .    ds o a
117 .    ds d- d\h'-1'\(ga
118 .    ds D- D\h'-1'\(hy
119 .    ds th \o'bp'
120 .    ds Th \o'LP'
121 .    ds ae ae
122 .    ds Ae AE
123 .\}
124 .rm #[ #] #H #V #F C
125 .\" ========================================================================
126 .\"
127 .IX Title "OBJDUMP 1"
128 .TH OBJDUMP 1 "2010-10-30" "binutils-2.17.50" "GNU Development Tools"
129 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
130 .\" way too many mistakes in technical documents.
131 .if n .ad l
132 .nh
133 .SH "NAME"
134 objdump \- display information from object files.
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 objdump [\fB\-a\fR|\fB\-\-archive\-headers\fR]
138         [\fB\-b\fR \fIbfdname\fR|\fB\-\-target=\fR\fIbfdname\fR]
139         [\fB\-C\fR|\fB\-\-demangle\fR[=\fIstyle\fR] ]
140         [\fB\-d\fR|\fB\-\-disassemble\fR]
141         [\fB\-D\fR|\fB\-\-disassemble\-all\fR]
142         [\fB\-z\fR|\fB\-\-disassemble\-zeroes\fR]
143         [\fB\-EB\fR|\fB\-EL\fR|\fB\-\-endian=\fR{big | little }]
144         [\fB\-f\fR|\fB\-\-file\-headers\fR]
145         [\fB\-\-file\-start\-context\fR]
146         [\fB\-g\fR|\fB\-\-debugging\fR]
147         [\fB\-e\fR|\fB\-\-debugging\-tags\fR]
148         [\fB\-h\fR|\fB\-\-section\-headers\fR|\fB\-\-headers\fR]
149         [\fB\-i\fR|\fB\-\-info\fR]
150         [\fB\-j\fR \fIsection\fR|\fB\-\-section=\fR\fIsection\fR]
151         [\fB\-l\fR|\fB\-\-line\-numbers\fR]
152         [\fB\-S\fR|\fB\-\-source\fR]
153         [\fB\-m\fR \fImachine\fR|\fB\-\-architecture=\fR\fImachine\fR]
154         [\fB\-M\fR \fIoptions\fR|\fB\-\-disassembler\-options=\fR\fIoptions\fR]
155         [\fB\-p\fR|\fB\-\-private\-headers\fR]
156         [\fB\-r\fR|\fB\-\-reloc\fR]
157         [\fB\-R\fR|\fB\-\-dynamic\-reloc\fR]
158         [\fB\-s\fR|\fB\-\-full\-contents\fR]
159         [\fB\-W\fR|\fB\-\-dwarf\fR]
160         [\fB\-G\fR|\fB\-\-stabs\fR]
161         [\fB\-t\fR|\fB\-\-syms\fR]
162         [\fB\-T\fR|\fB\-\-dynamic\-syms\fR]
163         [\fB\-x\fR|\fB\-\-all\-headers\fR]
164         [\fB\-w\fR|\fB\-\-wide\fR]
165         [\fB\-\-start\-address=\fR\fIaddress\fR]
166         [\fB\-\-stop\-address=\fR\fIaddress\fR]
167         [\fB\-\-prefix\-addresses\fR]
168         [\fB\-\-[no\-]show\-raw\-insn\fR]
169         [\fB\-\-adjust\-vma=\fR\fIoffset\fR]
170         [\fB\-\-special\-syms\fR]
171         [\fB\-V\fR|\fB\-\-version\fR]
172         [\fB\-H\fR|\fB\-\-help\fR]
173         \fIobjfile\fR...
174 .SH "DESCRIPTION"
175 .IX Header "DESCRIPTION"
176 \&\fBobjdump\fR displays information about one or more object files.
177 The options control what particular information to display.  This
178 information is mostly useful to programmers who are working on the
179 compilation tools, as opposed to programmers who just want their
180 program to compile and work.
181 .PP
182 \&\fIobjfile\fR... are the object files to be examined.  When you
183 specify archives, \fBobjdump\fR shows information on each of the member
184 object files.
185 .SH "OPTIONS"
186 .IX Header "OPTIONS"
187 The long and short forms of options, shown here as alternatives, are
188 equivalent.  At least one option from the list
189 \&\fB\-a,\-d,\-D,\-e,\-f,\-g,\-G,\-h,\-H,\-p,\-r,\-R,\-s,\-S,\-t,\-T,\-V,\-x\fR must be given.
190 .IP "\fB\-a\fR" 4
191 .IX Item "-a"
192 .PD 0
193 .IP "\fB\-\-archive\-header\fR" 4
194 .IX Item "--archive-header"
195 .PD
196 If any of the \fIobjfile\fR files are archives, display the archive
197 header information (in a format similar to \fBls \-l\fR).  Besides the
198 information you could list with \fBar tv\fR, \fBobjdump \-a\fR shows
199 the object file format of each archive member.
200 .IP "\fB\-\-adjust\-vma=\fR\fIoffset\fR" 4
201 .IX Item "--adjust-vma=offset"
202 When dumping information, first add \fIoffset\fR to all the section
203 addresses.  This is useful if the section addresses do not correspond to
204 the symbol table, which can happen when putting sections at particular
205 addresses when using a format which can not represent section addresses,
206 such as a.out.
207 .IP "\fB\-b\fR \fIbfdname\fR" 4
208 .IX Item "-b bfdname"
209 .PD 0
210 .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
211 .IX Item "--target=bfdname"
212 .PD
213 Specify that the object-code format for the object files is
214 \&\fIbfdname\fR.  This option may not be necessary; \fIobjdump\fR can
215 automatically recognize many formats.
216 .Sp
217 For example,
218 .Sp
219 .Vb 1
220 \&        objdump \-b oasys \-m vax \-h fu.o
221 .Ve
222 .Sp
223 displays summary information from the section headers (\fB\-h\fR) of
224 \&\fIfu.o\fR, which is explicitly identified (\fB\-m\fR) as a \s-1VAX\s0 object
225 file in the format produced by Oasys compilers.  You can list the
226 formats available with the \fB\-i\fR option.
227 .IP "\fB\-C\fR" 4
228 .IX Item "-C"
229 .PD 0
230 .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
231 .IX Item "--demangle[=style]"
232 .PD
233 Decode (\fIdemangle\fR) low-level symbol names into user-level names.
234 Besides removing any initial underscore prepended by the system, this
235 makes \*(C+ function names readable.  Different compilers have different
236 mangling styles. The optional demangling style argument can be used to
237 choose an appropriate demangling style for your compiler.
238 .IP "\fB\-g\fR" 4
239 .IX Item "-g"
240 .PD 0
241 .IP "\fB\-\-debugging\fR" 4
242 .IX Item "--debugging"
243 .PD
244 Display debugging information.  This attempts to parse debugging
245 information stored in the file and print it out using a C like syntax.
246 Only certain types of debugging information have been implemented.
247 Some other types are supported by \fBreadelf \-w\fR.
248 .IP "\fB\-e\fR" 4
249 .IX Item "-e"
250 .PD 0
251 .IP "\fB\-\-debugging\-tags\fR" 4
252 .IX Item "--debugging-tags"
253 .PD
254 Like \fB\-g\fR, but the information is generated in a format compatible
255 with ctags tool.
256 .IP "\fB\-d\fR" 4
257 .IX Item "-d"
258 .PD 0
259 .IP "\fB\-\-disassemble\fR" 4
260 .IX Item "--disassemble"
261 .PD
262 Display the assembler mnemonics for the machine instructions from
263 \&\fIobjfile\fR.  This option only disassembles those sections which are
264 expected to contain instructions.
265 .IP "\fB\-D\fR" 4
266 .IX Item "-D"
267 .PD 0
268 .IP "\fB\-\-disassemble\-all\fR" 4
269 .IX Item "--disassemble-all"
270 .PD
271 Like \fB\-d\fR, but disassemble the contents of all sections, not just
272 those expected to contain instructions.
273 .IP "\fB\-\-prefix\-addresses\fR" 4
274 .IX Item "--prefix-addresses"
275 When disassembling, print the complete address on each line.  This is
276 the older disassembly format.
277 .IP "\fB\-EB\fR" 4
278 .IX Item "-EB"
279 .PD 0
280 .IP "\fB\-EL\fR" 4
281 .IX Item "-EL"
282 .IP "\fB\-\-endian={big|little}\fR" 4
283 .IX Item "--endian={big|little}"
284 .PD
285 Specify the endianness of the object files.  This only affects
286 disassembly.  This can be useful when disassembling a file format which
287 does not describe endianness information, such as S\-records.
288 .IP "\fB\-f\fR" 4
289 .IX Item "-f"
290 .PD 0
291 .IP "\fB\-\-file\-headers\fR" 4
292 .IX Item "--file-headers"
293 .PD
294 Display summary information from the overall header of
295 each of the \fIobjfile\fR files.
296 .IP "\fB\-\-file\-start\-context\fR" 4
297 .IX Item "--file-start-context"
298 Specify that when displaying interlisted source code/disassembly
299 (assumes \fB\-S\fR) from a file that has not yet been displayed, extend the
300 context to the start of the file.
301 .IP "\fB\-h\fR" 4
302 .IX Item "-h"
303 .PD 0
304 .IP "\fB\-\-section\-headers\fR" 4
305 .IX Item "--section-headers"
306 .IP "\fB\-\-headers\fR" 4
307 .IX Item "--headers"
308 .PD
309 Display summary information from the section headers of the
310 object file.
311 .Sp
312 File segments may be relocated to nonstandard addresses, for example by
313 using the \fB\-Ttext\fR, \fB\-Tdata\fR, or \fB\-Tbss\fR options to
314 \&\fBld\fR.  However, some object file formats, such as a.out, do not
315 store the starting address of the file segments.  In those situations,
316 although \fBld\fR relocates the sections correctly, using \fBobjdump
317 \&\-h\fR to list the file section headers cannot show the correct addresses.
318 Instead, it shows the usual addresses, which are implicit for the
319 target.
320 .IP "\fB\-H\fR" 4
321 .IX Item "-H"
322 .PD 0
323 .IP "\fB\-\-help\fR" 4
324 .IX Item "--help"
325 .PD
326 Print a summary of the options to \fBobjdump\fR and exit.
327 .IP "\fB\-i\fR" 4
328 .IX Item "-i"
329 .PD 0
330 .IP "\fB\-\-info\fR" 4
331 .IX Item "--info"
332 .PD
333 Display a list showing all architectures and object formats available
334 for specification with \fB\-b\fR or \fB\-m\fR.
335 .IP "\fB\-j\fR \fIname\fR" 4
336 .IX Item "-j name"
337 .PD 0
338 .IP "\fB\-\-section=\fR\fIname\fR" 4
339 .IX Item "--section=name"
340 .PD
341 Display information only for section \fIname\fR.
342 .IP "\fB\-l\fR" 4
343 .IX Item "-l"
344 .PD 0
345 .IP "\fB\-\-line\-numbers\fR" 4
346 .IX Item "--line-numbers"
347 .PD
348 Label the display (using debugging information) with the filename and
349 source line numbers corresponding to the object code or relocs shown.
350 Only useful with \fB\-d\fR, \fB\-D\fR, or \fB\-r\fR.
351 .IP "\fB\-m\fR \fImachine\fR" 4
352 .IX Item "-m machine"
353 .PD 0
354 .IP "\fB\-\-architecture=\fR\fImachine\fR" 4
355 .IX Item "--architecture=machine"
356 .PD
357 Specify the architecture to use when disassembling object files.  This
358 can be useful when disassembling object files which do not describe
359 architecture information, such as S\-records.  You can list the available
360 architectures with the \fB\-i\fR option.
361 .IP "\fB\-M\fR \fIoptions\fR" 4
362 .IX Item "-M options"
363 .PD 0
364 .IP "\fB\-\-disassembler\-options=\fR\fIoptions\fR" 4
365 .IX Item "--disassembler-options=options"
366 .PD
367 Pass target specific information to the disassembler.  Only supported on
368 some targets.  If it is necessary to specify more than one
369 disassembler option then multiple \fB\-M\fR options can be used or
370 can be placed together into a comma separated list.
371 .Sp
372 If the target is an \s-1ARM\s0 architecture then this switch can be used to
373 select which register name set is used during disassembler.  Specifying
374 \&\fB\-M reg-names-std\fR (the default) will select the register names as
375 used in \s-1ARM\s0's instruction set documentation, but with register 13 called
376 \&'sp', register 14 called 'lr' and register 15 called 'pc'.  Specifying
377 \&\fB\-M reg-names-apcs\fR will select the name set used by the \s-1ARM\s0
378 Procedure Call Standard, whilst specifying \fB\-M reg-names-raw\fR will
379 just use \fBr\fR followed by the register number.
380 .Sp
381 There are also two variants on the \s-1APCS\s0 register naming scheme enabled
382 by \fB\-M reg-names-atpcs\fR and \fB\-M reg-names-special-atpcs\fR which
383 use the ARM/Thumb Procedure Call Standard naming conventions.  (Either
384 with the normal register names or the special register names).
385 .Sp
386 This option can also be used for \s-1ARM\s0 architectures to force the
387 disassembler to interpret all instructions as Thumb instructions by
388 using the switch \fB\-\-disassembler\-options=force\-thumb\fR.  This can be
389 useful when attempting to disassemble thumb code produced by other
390 compilers.
391 .Sp
392 For the x86, some of the options duplicate functions of the \fB\-m\fR
393 switch, but allow finer grained control.  Multiple selections from the
394 following may be specified as a comma separated string.
395 \&\fBx86\-64\fR, \fBi386\fR and \fBi8086\fR select disassembly for
396 the given architecture.  \fBintel\fR and \fBatt\fR select between
397 intel syntax mode and \s-1AT&T\s0 syntax mode.  \fBaddr64\fR, \fBaddr32\fR,
398 \&\fBaddr16\fR, \fBdata32\fR and \fBdata16\fR specify the default
399 address size and operand size.  These four options will be overridden if
400 \&\fBx86\-64\fR, \fBi386\fR or \fBi8086\fR appear later in the
401 option string.  Lastly, \fBsuffix\fR, when in \s-1AT&T\s0 mode,
402 instructs the disassembler to print a mnemonic suffix even when the
403 suffix could be inferred by the operands.
404 .Sp
405 For \s-1PPC\s0, \fBbooke\fR, \fBbooke32\fR and \fBbooke64\fR select
406 disassembly of BookE instructions.  \fB32\fR and \fB64\fR select
407 PowerPC and PowerPC64 disassembly, respectively.  \fBe300\fR selects
408 disassembly for the e300 family.  \fB440\fR selects disassembly for
409 the PowerPC 440.
410 .Sp
411 For \s-1MIPS\s0, this option controls the printing of instruction mnemonic
412 names and register names in disassembled instructions.  Multiple
413 selections from the following may be specified as a comma separated
414 string, and invalid options are ignored:
415 .RS 4
416 .ie n .IP """no\-aliases""" 4
417 .el .IP "\f(CWno\-aliases\fR" 4
418 .IX Item "no-aliases"
419 Print the 'raw' instruction mnemonic instead of some pseudo
420 instruction mnemonic.  I.e., print 'daddu' or 'or' instead of 'move',
421 \&'sll' instead of 'nop', etc.
422 .ie n .IP """gpr\-names=\f(CIABI\f(CW""" 4
423 .el .IP "\f(CWgpr\-names=\f(CIABI\f(CW\fR" 4
424 .IX Item "gpr-names=ABI"
425 Print \s-1GPR\s0 (general-purpose register) names as appropriate
426 for the specified \s-1ABI\s0.  By default, \s-1GPR\s0 names are selected according to
427 the \s-1ABI\s0 of the binary being disassembled.
428 .ie n .IP """fpr\-names=\f(CIABI\f(CW""" 4
429 .el .IP "\f(CWfpr\-names=\f(CIABI\f(CW\fR" 4
430 .IX Item "fpr-names=ABI"
431 Print \s-1FPR\s0 (floating-point register) names as
432 appropriate for the specified \s-1ABI\s0.  By default, \s-1FPR\s0 numbers are printed
433 rather than names.
434 .ie n .IP """cp0\-names=\f(CIARCH\f(CW""" 4
435 .el .IP "\f(CWcp0\-names=\f(CIARCH\f(CW\fR" 4
436 .IX Item "cp0-names=ARCH"
437 Print \s-1CP0\s0 (system control coprocessor; coprocessor 0) register names
438 as appropriate for the \s-1CPU\s0 or architecture specified by
439 \&\fI\s-1ARCH\s0\fR.  By default, \s-1CP0\s0 register names are selected according to
440 the architecture and \s-1CPU\s0 of the binary being disassembled.
441 .ie n .IP """hwr\-names=\f(CIARCH\f(CW""" 4
442 .el .IP "\f(CWhwr\-names=\f(CIARCH\f(CW\fR" 4
443 .IX Item "hwr-names=ARCH"
444 Print \s-1HWR\s0 (hardware register, used by the \f(CW\*(C`rdhwr\*(C'\fR instruction) names
445 as appropriate for the \s-1CPU\s0 or architecture specified by
446 \&\fI\s-1ARCH\s0\fR.  By default, \s-1HWR\s0 names are selected according to
447 the architecture and \s-1CPU\s0 of the binary being disassembled.
448 .ie n .IP """reg\-names=\f(CIABI\f(CW""" 4
449 .el .IP "\f(CWreg\-names=\f(CIABI\f(CW\fR" 4
450 .IX Item "reg-names=ABI"
451 Print \s-1GPR\s0 and \s-1FPR\s0 names as appropriate for the selected \s-1ABI\s0.
452 .ie n .IP """reg\-names=\f(CIARCH\f(CW""" 4
453 .el .IP "\f(CWreg\-names=\f(CIARCH\f(CW\fR" 4
454 .IX Item "reg-names=ARCH"
455 Print CPU-specific register names (\s-1CP0\s0 register and \s-1HWR\s0 names)
456 as appropriate for the selected \s-1CPU\s0 or architecture.
457 .RE
458 .RS 4
459 .Sp
460 For any of the options listed above, \fI\s-1ABI\s0\fR or
461 \&\fI\s-1ARCH\s0\fR may be specified as \fBnumeric\fR to have numbers printed
462 rather than names, for the selected types of registers.
463 You can list the available values of \fI\s-1ABI\s0\fR and \fI\s-1ARCH\s0\fR using
464 the \fB\-\-help\fR option.
465 .Sp
466 For \s-1VAX\s0, you can specify function entry addresses with \fB\-M
467 entry:0xf00ba\fR.  You can use this multiple times to properly
468 disassemble \s-1VAX\s0 binary files that don't contain symbol tables (like
469 \&\s-1ROM\s0 dumps).  In these cases, the function entry mask would otherwise
470 be decoded as \s-1VAX\s0 instructions, which would probably lead the rest
471 of the function being wrongly disassembled.
472 .RE
473 .IP "\fB\-p\fR" 4
474 .IX Item "-p"
475 .PD 0
476 .IP "\fB\-\-private\-headers\fR" 4
477 .IX Item "--private-headers"
478 .PD
479 Print information that is specific to the object file format.  The exact
480 information printed depends upon the object file format.  For some
481 object file formats, no additional information is printed.
482 .IP "\fB\-r\fR" 4
483 .IX Item "-r"
484 .PD 0
485 .IP "\fB\-\-reloc\fR" 4
486 .IX Item "--reloc"
487 .PD
488 Print the relocation entries of the file.  If used with \fB\-d\fR or
489 \&\fB\-D\fR, the relocations are printed interspersed with the
490 disassembly.
491 .IP "\fB\-R\fR" 4
492 .IX Item "-R"
493 .PD 0
494 .IP "\fB\-\-dynamic\-reloc\fR" 4
495 .IX Item "--dynamic-reloc"
496 .PD
497 Print the dynamic relocation entries of the file.  This is only
498 meaningful for dynamic objects, such as certain types of shared
499 libraries.
500 .IP "\fB\-s\fR" 4
501 .IX Item "-s"
502 .PD 0
503 .IP "\fB\-\-full\-contents\fR" 4
504 .IX Item "--full-contents"
505 .PD
506 Display the full contents of any sections requested.  By default all
507 non-empty sections are displayed.
508 .IP "\fB\-S\fR" 4
509 .IX Item "-S"
510 .PD 0
511 .IP "\fB\-\-source\fR" 4
512 .IX Item "--source"
513 .PD
514 Display source code intermixed with disassembly, if possible.  Implies
515 \&\fB\-d\fR.
516 .IP "\fB\-\-show\-raw\-insn\fR" 4
517 .IX Item "--show-raw-insn"
518 When disassembling instructions, print the instruction in hex as well as
519 in symbolic form.  This is the default except when
520 \&\fB\-\-prefix\-addresses\fR is used.
521 .IP "\fB\-\-no\-show\-raw\-insn\fR" 4
522 .IX Item "--no-show-raw-insn"
523 When disassembling instructions, do not print the instruction bytes.
524 This is the default when \fB\-\-prefix\-addresses\fR is used.
525 .IP "\fB\-W\fR" 4
526 .IX Item "-W"
527 .PD 0
528 .IP "\fB\-\-dwarf\fR" 4
529 .IX Item "--dwarf"
530 .PD
531 Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
532 are present.
533 .IP "\fB\-G\fR" 4
534 .IX Item "-G"
535 .PD 0
536 .IP "\fB\-\-stabs\fR" 4
537 .IX Item "--stabs"
538 .PD
539 Display the full contents of any sections requested.  Display the
540 contents of the .stab and .stab.index and .stab.excl sections from an
541 \&\s-1ELF\s0 file.  This is only useful on systems (such as Solaris 2.0) in which
542 \&\f(CW\*(C`.stab\*(C'\fR debugging symbol-table entries are carried in an \s-1ELF\s0
543 section.  In most other file formats, debugging symbol-table entries are
544 interleaved with linkage symbols, and are visible in the \fB\-\-syms\fR
545 output.
546 .IP "\fB\-\-start\-address=\fR\fIaddress\fR" 4
547 .IX Item "--start-address=address"
548 Start displaying data at the specified address.  This affects the output
549 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
550 .IP "\fB\-\-stop\-address=\fR\fIaddress\fR" 4
551 .IX Item "--stop-address=address"
552 Stop displaying data at the specified address.  This affects the output
553 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
554 .IP "\fB\-t\fR" 4
555 .IX Item "-t"
556 .PD 0
557 .IP "\fB\-\-syms\fR" 4
558 .IX Item "--syms"
559 .PD
560 Print the symbol table entries of the file.
561 This is similar to the information provided by the \fBnm\fR program.
562 .IP "\fB\-T\fR" 4
563 .IX Item "-T"
564 .PD 0
565 .IP "\fB\-\-dynamic\-syms\fR" 4
566 .IX Item "--dynamic-syms"
567 .PD
568 Print the dynamic symbol table entries of the file.  This is only
569 meaningful for dynamic objects, such as certain types of shared
570 libraries.  This is similar to the information provided by the \fBnm\fR
571 program when given the \fB\-D\fR (\fB\-\-dynamic\fR) option.
572 .IP "\fB\-\-special\-syms\fR" 4
573 .IX Item "--special-syms"
574 When displaying symbols include those which the target considers to be
575 special in some way and which would not normally be of interest to the
576 user.
577 .IP "\fB\-V\fR" 4
578 .IX Item "-V"
579 .PD 0
580 .IP "\fB\-\-version\fR" 4
581 .IX Item "--version"
582 .PD
583 Print the version number of \fBobjdump\fR and exit.
584 .IP "\fB\-x\fR" 4
585 .IX Item "-x"
586 .PD 0
587 .IP "\fB\-\-all\-headers\fR" 4
588 .IX Item "--all-headers"
589 .PD
590 Display all available header information, including the symbol table and
591 relocation entries.  Using \fB\-x\fR is equivalent to specifying all of
592 \&\fB\-a \-f \-h \-p \-r \-t\fR.
593 .IP "\fB\-w\fR" 4
594 .IX Item "-w"
595 .PD 0
596 .IP "\fB\-\-wide\fR" 4
597 .IX Item "--wide"
598 .PD
599 Format some lines for output devices that have more than 80 columns.
600 Also do not truncate symbol names when they are displayed.
601 .IP "\fB\-z\fR" 4
602 .IX Item "-z"
603 .PD 0
604 .IP "\fB\-\-disassemble\-zeroes\fR" 4
605 .IX Item "--disassemble-zeroes"
606 .PD
607 Normally the disassembly output will skip blocks of zeroes.  This
608 option directs the disassembler to disassemble those blocks, just like
609 any other data.
610 .IP "\fB@\fR\fIfile\fR" 4
611 .IX Item "@file"
612 Read command-line options from \fIfile\fR.  The options read are
613 inserted in place of the original @\fIfile\fR option.  If \fIfile\fR
614 does not exist, or cannot be read, then the option will be treated
615 literally, and not removed.
616 .Sp
617 Options in \fIfile\fR are separated by whitespace.  A whitespace
618 character may be included in an option by surrounding the entire
619 option in either single or double quotes.  Any character (including a
620 backslash) may be included by prefixing the character to be included
621 with a backslash.  The \fIfile\fR may itself contain additional
622 @\fIfile\fR options; any such options will be processed recursively.
623 .SH "SEE ALSO"
624 .IX Header "SEE ALSO"
625 \&\fInm\fR\|(1), \fIreadelf\fR\|(1), and the Info entries for \fIbinutils\fR.
626 .SH "COPYRIGHT"
627 .IX Header "COPYRIGHT"
628 Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
629 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
630 .PP
631 Permission is granted to copy, distribute and/or modify this document
632 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1
633 or any later version published by the Free Software Foundation;
634 with no Invariant Sections, with no Front-Cover Texts, and with no
635 Back-Cover Texts.  A copy of the license is included in the
636 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".