1 .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
9 .de Vb \" Begin verbatim text
14 .de Ve \" End verbatim text
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<>.
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
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
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
49 .\" If the F register is >0, 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.
54 .\" Avoid warning from groff about undefined register 'F'.
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{\
62 . tm Index:\\$1\t\\n%\t"\\$2"
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
83 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
89 . \" simple accents for nroff and troff
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'
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 \
133 .\" ========================================================================
135 .IX Title "OBJDUMP 1"
136 .TH OBJDUMP 1 "2022-02-09" "binutils-2.38" "GNU Development Tools"
137 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
142 objdump \- display information from object files
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[=\fIsymbol\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\-\-source\-comment\fR[=\fItext\fR]]
163 [\fB\-m\fR \fImachine\fR|\fB\-\-architecture=\fR\fImachine\fR]
164 [\fB\-M\fR \fIoptions\fR|\fB\-\-disassembler\-options=\fR\fIoptions\fR]
165 [\fB\-p\fR|\fB\-\-private\-headers\fR]
166 [\fB\-P\fR \fIoptions\fR|\fB\-\-private=\fR\fIoptions\fR]
167 [\fB\-r\fR|\fB\-\-reloc\fR]
168 [\fB\-R\fR|\fB\-\-dynamic\-reloc\fR]
169 [\fB\-s\fR|\fB\-\-full\-contents\fR]
170 [\fB\-W[lLiaprmfFsoORtUuTgAck]\fR|
171 \fB\-\-dwarf\fR[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=str\-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links]]
172 [\fB\-WK\fR|\fB\-\-dwarf=follow\-links\fR]
173 [\fB\-WN\fR|\fB\-\-dwarf=no\-follow\-links\fR]
174 [\fB\-L\fR|\fB\-\-process\-links\fR]
175 [\fB\-\-ctf=\fR\fIsection\fR]
176 [\fB\-G\fR|\fB\-\-stabs\fR]
177 [\fB\-t\fR|\fB\-\-syms\fR]
178 [\fB\-T\fR|\fB\-\-dynamic\-syms\fR]
179 [\fB\-x\fR|\fB\-\-all\-headers\fR]
180 [\fB\-w\fR|\fB\-\-wide\fR]
181 [\fB\-\-start\-address=\fR\fIaddress\fR]
182 [\fB\-\-stop\-address=\fR\fIaddress\fR]
183 [\fB\-\-no\-addresses\fR]
184 [\fB\-\-prefix\-addresses\fR]
185 [\fB\-\-[no\-]show\-raw\-insn\fR]
186 [\fB\-\-adjust\-vma=\fR\fIoffset\fR]
187 [\fB\-\-dwarf\-depth=\fR\fIn\fR]
188 [\fB\-\-dwarf\-start=\fR\fIn\fR]
189 [\fB\-\-ctf\-parent=\fR\fIsection\fR]
190 [\fB\-\-no\-recurse\-limit\fR|\fB\-\-recurse\-limit\fR]
191 [\fB\-\-special\-syms\fR]
192 [\fB\-\-prefix=\fR\fIprefix\fR]
193 [\fB\-\-prefix\-strip=\fR\fIlevel\fR]
194 [\fB\-\-insn\-width=\fR\fIwidth\fR]
195 [\fB\-\-visualize\-jumps[=color|=extended\-color|=off]\fR
196 [\fB\-U\fR \fImethod\fR] [\fB\-\-unicode=\fR\fImethod\fR]
197 [\fB\-V\fR|\fB\-\-version\fR]
198 [\fB\-H\fR|\fB\-\-help\fR]
201 .IX Header "DESCRIPTION"
202 \&\fBobjdump\fR displays information about one or more object files.
203 The options control what particular information to display. This
204 information is mostly useful to programmers who are working on the
205 compilation tools, as opposed to programmers who just want their
206 program to compile and work.
208 \&\fIobjfile\fR... are the object files to be examined. When you
209 specify archives, \fBobjdump\fR shows information on each of the member
213 The long and short forms of options, shown here as alternatives, are
214 equivalent. At least one option from the list
215 \&\fB\-a,\-d,\-D,\-e,\-f,\-g,\-G,\-h,\-H,\-p,\-P,\-r,\-R,\-s,\-S,\-t,\-T,\-V,\-x\fR must be given.
219 .IP "\fB\-\-archive\-header\fR" 4
220 .IX Item "--archive-header"
222 If any of the \fIobjfile\fR files are archives, display the archive
223 header information (in a format similar to \fBls \-l\fR). Besides the
224 information you could list with \fBar tv\fR, \fBobjdump \-a\fR shows
225 the object file format of each archive member.
226 .IP "\fB\-\-adjust\-vma=\fR\fIoffset\fR" 4
227 .IX Item "--adjust-vma=offset"
228 When dumping information, first add \fIoffset\fR to all the section
229 addresses. This is useful if the section addresses do not correspond to
230 the symbol table, which can happen when putting sections at particular
231 addresses when using a format which can not represent section addresses,
233 .IP "\fB\-b\fR \fIbfdname\fR" 4
234 .IX Item "-b bfdname"
236 .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
237 .IX Item "--target=bfdname"
239 Specify that the object-code format for the object files is
240 \&\fIbfdname\fR. This option may not be necessary; \fIobjdump\fR can
241 automatically recognize many formats.
246 \& objdump \-b oasys \-m vax \-h fu.o
249 displays summary information from the section headers (\fB\-h\fR) of
250 \&\fIfu.o\fR, which is explicitly identified (\fB\-m\fR) as a \s-1VAX\s0 object
251 file in the format produced by Oasys compilers. You can list the
252 formats available with the \fB\-i\fR option.
256 .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
257 .IX Item "--demangle[=style]"
259 Decode (\fIdemangle\fR) low-level symbol names into user-level names.
260 Besides removing any initial underscore prepended by the system, this
261 makes \*(C+ function names readable. Different compilers have different
262 mangling styles. The optional demangling style argument can be used to
263 choose an appropriate demangling style for your compiler.
264 .IP "\fB\-\-recurse\-limit\fR" 4
265 .IX Item "--recurse-limit"
267 .IP "\fB\-\-no\-recurse\-limit\fR" 4
268 .IX Item "--no-recurse-limit"
269 .IP "\fB\-\-recursion\-limit\fR" 4
270 .IX Item "--recursion-limit"
271 .IP "\fB\-\-no\-recursion\-limit\fR" 4
272 .IX Item "--no-recursion-limit"
274 Enables or disables a limit on the amount of recursion performed
275 whilst demangling strings. Since the name mangling formats allow for
276 an infinite level of recursion it is possible to create strings whose
277 decoding will exhaust the amount of stack space available on the host
278 machine, triggering a memory fault. The limit tries to prevent this
279 from happening by restricting recursion to 2048 levels of nesting.
281 The default is for this limit to be enabled, but disabling it may be
282 necessary in order to demangle truly complicated names. Note however
283 that if the recursion limit is disabled then stack exhaustion is
284 possible and any bug reports about such an event will be rejected.
288 .IP "\fB\-\-debugging\fR" 4
289 .IX Item "--debugging"
291 Display debugging information. This attempts to parse \s-1STABS\s0
292 debugging format information stored in the file and print it out using
293 a C like syntax. If no \s-1STABS\s0 debugging was found this option
294 falls back on the \fB\-W\fR option to print any \s-1DWARF\s0 information in
299 .IP "\fB\-\-debugging\-tags\fR" 4
300 .IX Item "--debugging-tags"
302 Like \fB\-g\fR, but the information is generated in a format compatible
307 .IP "\fB\-\-disassemble\fR" 4
308 .IX Item "--disassemble"
309 .IP "\fB\-\-disassemble=\fR\fIsymbol\fR" 4
310 .IX Item "--disassemble=symbol"
312 Display the assembler mnemonics for the machine instructions from the
313 input file. This option only disassembles those sections which are
314 expected to contain instructions. If the optional \fIsymbol\fR
315 argument is given, then display the assembler mnemonics starting at
316 \&\fIsymbol\fR. If \fIsymbol\fR is a function name then disassembly
317 will stop at the end of the function, otherwise it will stop when the
318 next symbol is encountered. If there are no matches for \fIsymbol\fR
319 then nothing will be displayed.
321 Note if the \fB\-\-dwarf=follow\-links\fR option is enabled
322 then any symbol tables in linked debug info files will be read in and
323 used when disassembling.
327 .IP "\fB\-\-disassemble\-all\fR" 4
328 .IX Item "--disassemble-all"
330 Like \fB\-d\fR, but disassemble the contents of all sections, not just
331 those expected to contain instructions.
333 This option also has a subtle effect on the disassembly of
334 instructions in code sections. When option \fB\-d\fR is in effect
335 objdump will assume that any symbols present in a code section occur
336 on the boundary between instructions and it will refuse to disassemble
337 across such a boundary. When option \fB\-D\fR is in effect however
338 this assumption is supressed. This means that it is possible for the
339 output of \fB\-d\fR and \fB\-D\fR to differ if, for example, data
340 is stored in code sections.
342 If the target is an \s-1ARM\s0 architecture this switch also has the effect
343 of forcing the disassembler to decode pieces of data found in code
344 sections as if they were instructions.
346 Note if the \fB\-\-dwarf=follow\-links\fR option is enabled
347 then any symbol tables in linked debug info files will be read in and
348 used when disassembling.
349 .IP "\fB\-\-no\-addresses\fR" 4
350 .IX Item "--no-addresses"
351 When disassembling, don't print addresses on each line or for symbols
352 and relocation offsets. In combination with \fB\-\-no\-show\-raw\-insn\fR
353 this may be useful for comparing compiler output.
354 .IP "\fB\-\-prefix\-addresses\fR" 4
355 .IX Item "--prefix-addresses"
356 When disassembling, print the complete address on each line. This is
357 the older disassembly format.
363 .IP "\fB\-\-endian={big|little}\fR" 4
364 .IX Item "--endian={big|little}"
366 Specify the endianness of the object files. This only affects
367 disassembly. This can be useful when disassembling a file format which
368 does not describe endianness information, such as S\-records.
372 .IP "\fB\-\-file\-headers\fR" 4
373 .IX Item "--file-headers"
375 Display summary information from the overall header of
376 each of the \fIobjfile\fR files.
380 .IP "\fB\-\-file\-offsets\fR" 4
381 .IX Item "--file-offsets"
383 When disassembling sections, whenever a symbol is displayed, also
384 display the file offset of the region of data that is about to be
385 dumped. If zeroes are being skipped, then when disassembly resumes,
386 tell the user how many zeroes were skipped and the file offset of the
387 location from where the disassembly resumes. When dumping sections,
388 display the file offset of the location from where the dump starts.
389 .IP "\fB\-\-file\-start\-context\fR" 4
390 .IX Item "--file-start-context"
391 Specify that when displaying interlisted source code/disassembly
392 (assumes \fB\-S\fR) from a file that has not yet been displayed, extend the
393 context to the start of the file.
397 .IP "\fB\-\-section\-headers\fR" 4
398 .IX Item "--section-headers"
399 .IP "\fB\-\-headers\fR" 4
402 Display summary information from the section headers of the
405 File segments may be relocated to nonstandard addresses, for example by
406 using the \fB\-Ttext\fR, \fB\-Tdata\fR, or \fB\-Tbss\fR options to
407 \&\fBld\fR. However, some object file formats, such as a.out, do not
408 store the starting address of the file segments. In those situations,
409 although \fBld\fR relocates the sections correctly, using \fBobjdump
410 \&\-h\fR to list the file section headers cannot show the correct addresses.
411 Instead, it shows the usual addresses, which are implicit for the
414 Note, in some cases it is possible for a section to have both the
415 \&\s-1READONLY\s0 and the \s-1NOREAD\s0 attributes set. In such cases the \s-1NOREAD\s0
416 attribute takes precedence, but \fBobjdump\fR will report both
417 since the exact setting of the flag bits might be important.
421 .IP "\fB\-\-help\fR" 4
424 Print a summary of the options to \fBobjdump\fR and exit.
428 .IP "\fB\-\-info\fR" 4
431 Display a list showing all architectures and object formats available
432 for specification with \fB\-b\fR or \fB\-m\fR.
433 .IP "\fB\-j\fR \fIname\fR" 4
436 .IP "\fB\-\-section=\fR\fIname\fR" 4
437 .IX Item "--section=name"
439 Display information only for section \fIname\fR.
443 .IP "\fB\-\-process\-links\fR" 4
444 .IX Item "--process-links"
446 Display the contents of non-debug sections found in separate debuginfo
447 files that are linked to the main file. This option automatically
448 implies the \fB\-WK\fR option, and only sections requested by other
449 command line options will be displayed.
453 .IP "\fB\-\-line\-numbers\fR" 4
454 .IX Item "--line-numbers"
456 Label the display (using debugging information) with the filename and
457 source line numbers corresponding to the object code or relocs shown.
458 Only useful with \fB\-d\fR, \fB\-D\fR, or \fB\-r\fR.
459 .IP "\fB\-m\fR \fImachine\fR" 4
460 .IX Item "-m machine"
462 .IP "\fB\-\-architecture=\fR\fImachine\fR" 4
463 .IX Item "--architecture=machine"
465 Specify the architecture to use when disassembling object files. This
466 can be useful when disassembling object files which do not describe
467 architecture information, such as S\-records. You can list the available
468 architectures with the \fB\-i\fR option.
470 If the target is an \s-1ARM\s0 architecture then this switch has an
471 additional effect. It restricts the disassembly to only those
472 instructions supported by the architecture specified by \fImachine\fR.
473 If it is necessary to use this switch because the input file does not
474 contain any architecture information, but it is also desired to
475 disassemble all the instructions use \fB\-marm\fR.
476 .IP "\fB\-M\fR \fIoptions\fR" 4
477 .IX Item "-M options"
479 .IP "\fB\-\-disassembler\-options=\fR\fIoptions\fR" 4
480 .IX Item "--disassembler-options=options"
482 Pass target specific information to the disassembler. Only supported on
483 some targets. If it is necessary to specify more than one
484 disassembler option then multiple \fB\-M\fR options can be used or
485 can be placed together into a comma separated list.
487 For \s-1ARC,\s0 \fBdsp\fR controls the printing of \s-1DSP\s0 instructions,
488 \&\fBspfp\fR selects the printing of \s-1FPX\s0 single precision \s-1FP\s0
489 instructions, \fBdpfp\fR selects the printing of \s-1FPX\s0 double
490 precision \s-1FP\s0 instructions, \fBquarkse_em\fR selects the printing of
491 special QuarkSE-EM instructions, \fBfpuda\fR selects the printing
492 of double precision assist instructions, \fBfpus\fR selects the
493 printing of \s-1FPU\s0 single precision \s-1FP\s0 instructions, while \fBfpud\fR
494 selects the printing of \s-1FPU\s0 double precision \s-1FP\s0 instructions.
495 Additionally, one can choose to have all the immediates printed in
496 hexadecimal using \fBhex\fR. By default, the short immediates are
497 printed using the decimal representation, while the long immediate
498 values are printed as hexadecimal.
500 \&\fBcpu=...\fR allows one to enforce a particular \s-1ISA\s0 when disassembling
501 instructions, overriding the \fB\-m\fR value or whatever is in the \s-1ELF\s0 file.
502 This might be useful to select \s-1ARC EM\s0 or \s-1HS ISA,\s0 because architecture is same
503 for those and disassembler relies on private \s-1ELF\s0 header data to decide if code
504 is for \s-1EM\s0 or \s-1HS.\s0 This option might be specified multiple times \- only the
505 latest value will be used. Valid values are same as for the assembler
506 \&\fB\-mcpu=...\fR option.
508 If the target is an \s-1ARM\s0 architecture then this switch can be used to
509 select which register name set is used during disassembler. Specifying
510 \&\fB\-M reg-names-std\fR (the default) will select the register names as
511 used in \s-1ARM\s0's instruction set documentation, but with register 13 called
512 \&'sp', register 14 called 'lr' and register 15 called 'pc'. Specifying
513 \&\fB\-M reg-names-apcs\fR will select the name set used by the \s-1ARM\s0
514 Procedure Call Standard, whilst specifying \fB\-M reg-names-raw\fR will
515 just use \fBr\fR followed by the register number.
517 There are also two variants on the \s-1APCS\s0 register naming scheme enabled
518 by \fB\-M reg-names-atpcs\fR and \fB\-M reg-names-special-atpcs\fR which
519 use the ARM/Thumb Procedure Call Standard naming conventions. (Either
520 with the normal register names or the special register names).
522 This option can also be used for \s-1ARM\s0 architectures to force the
523 disassembler to interpret all instructions as Thumb instructions by
524 using the switch \fB\-\-disassembler\-options=force\-thumb\fR. This can be
525 useful when attempting to disassemble thumb code produced by other
528 For AArch64 targets this switch can be used to set whether instructions are
529 disassembled as the most general instruction using the \fB\-M no-aliases\fR
530 option or whether instruction notes should be generated as comments in the
531 disasssembly using \fB\-M notes\fR.
533 For the x86, some of the options duplicate functions of the \fB\-m\fR
534 switch, but allow finer grained control.
536 .ie n .IP """x86\-64""" 4
537 .el .IP "\f(CWx86\-64\fR" 4
540 .ie n .IP """i386""" 4
541 .el .IP "\f(CWi386\fR" 4
543 .ie n .IP """i8086""" 4
544 .el .IP "\f(CWi8086\fR" 4
547 Select disassembly for the given architecture.
548 .ie n .IP """intel""" 4
549 .el .IP "\f(CWintel\fR" 4
552 .ie n .IP """att""" 4
553 .el .IP "\f(CWatt\fR" 4
556 Select between intel syntax mode and \s-1AT&T\s0 syntax mode.
557 .ie n .IP """amd64""" 4
558 .el .IP "\f(CWamd64\fR" 4
561 .ie n .IP """intel64""" 4
562 .el .IP "\f(CWintel64\fR" 4
565 Select between \s-1AMD64 ISA\s0 and Intel64 \s-1ISA.\s0
566 .ie n .IP """intel\-mnemonic""" 4
567 .el .IP "\f(CWintel\-mnemonic\fR" 4
568 .IX Item "intel-mnemonic"
570 .ie n .IP """att\-mnemonic""" 4
571 .el .IP "\f(CWatt\-mnemonic\fR" 4
572 .IX Item "att-mnemonic"
574 Select between intel mnemonic mode and \s-1AT&T\s0 mnemonic mode.
575 Note: \f(CW\*(C`intel\-mnemonic\*(C'\fR implies \f(CW\*(C`intel\*(C'\fR and
576 \&\f(CW\*(C`att\-mnemonic\*(C'\fR implies \f(CW\*(C`att\*(C'\fR.
577 .ie n .IP """addr64""" 4
578 .el .IP "\f(CWaddr64\fR" 4
581 .ie n .IP """addr32""" 4
582 .el .IP "\f(CWaddr32\fR" 4
584 .ie n .IP """addr16""" 4
585 .el .IP "\f(CWaddr16\fR" 4
587 .ie n .IP """data32""" 4
588 .el .IP "\f(CWdata32\fR" 4
590 .ie n .IP """data16""" 4
591 .el .IP "\f(CWdata16\fR" 4
594 Specify the default address size and operand size. These five options
595 will be overridden if \f(CW\*(C`x86\-64\*(C'\fR, \f(CW\*(C`i386\*(C'\fR or \f(CW\*(C`i8086\*(C'\fR
596 appear later in the option string.
597 .ie n .IP """suffix""" 4
598 .el .IP "\f(CWsuffix\fR" 4
600 When in \s-1AT&T\s0 mode and also for a limited set of instructions when in Intel
601 mode, instructs the disassembler to print a mnemonic suffix even when the
602 suffix could be inferred by the operands or, for certain instructions, the
603 execution mode's defaults.
607 For PowerPC, the \fB\-M\fR argument \fBraw\fR selects
608 disasssembly of hardware insns rather than aliases. For example, you
609 will see \f(CW\*(C`rlwinm\*(C'\fR rather than \f(CW\*(C`clrlwi\*(C'\fR, and \f(CW\*(C`addi\*(C'\fR
610 rather than \f(CW\*(C`li\*(C'\fR. All of the \fB\-m\fR arguments for
611 \&\fBgas\fR that select a \s-1CPU\s0 are supported. These are:
612 \&\fB403\fR, \fB405\fR, \fB440\fR, \fB464\fR, \fB476\fR,
613 \&\fB601\fR, \fB603\fR, \fB604\fR, \fB620\fR, \fB7400\fR,
614 \&\fB7410\fR, \fB7450\fR, \fB7455\fR, \fB750cl\fR,
615 \&\fB821\fR, \fB850\fR, \fB860\fR, \fBa2\fR, \fBbooke\fR,
616 \&\fBbooke32\fR, \fBcell\fR, \fBcom\fR, \fBe200z4\fR,
617 \&\fBe300\fR, \fBe500\fR, \fBe500mc\fR, \fBe500mc64\fR,
618 \&\fBe500x2\fR, \fBe5500\fR, \fBe6500\fR, \fBefs\fR,
619 \&\fBpower4\fR, \fBpower5\fR, \fBpower6\fR, \fBpower7\fR,
620 \&\fBpower8\fR, \fBpower9\fR, \fBpower10\fR, \fBppc\fR,
621 \&\fBppc32\fR, \fBppc64\fR, \fBppc64bridge\fR, \fBppcps\fR,
622 \&\fBpwr\fR, \fBpwr2\fR, \fBpwr4\fR, \fBpwr5\fR, \fBpwr5x\fR,
623 \&\fBpwr6\fR, \fBpwr7\fR, \fBpwr8\fR, \fBpwr9\fR, \fBpwr10\fR,
624 \&\fBpwrx\fR, \fBtitan\fR, and \fBvle\fR.
625 \&\fB32\fR and \fB64\fR modify the default or a prior \s-1CPU\s0
626 selection, disabling and enabling 64\-bit insns respectively. In
627 addition, \fBaltivec\fR, \fBany\fR, \fBhtm\fR, \fBvsx\fR,
628 and \fBspe\fR add capabilities to a previous \fIor later\fR \s-1CPU\s0
629 selection. \fBany\fR will disassemble any opcode known to
630 binutils, but in cases where an opcode has two different meanings or
631 different arguments, you may not see the disassembly you expect.
632 If you disassemble without giving a \s-1CPU\s0 selection, a default will be
633 chosen from information gleaned by \s-1BFD\s0 from the object files headers,
634 but the result again may not be as you expect.
636 For \s-1MIPS,\s0 this option controls the printing of instruction mnemonic
637 names and register names in disassembled instructions. Multiple
638 selections from the following may be specified as a comma separated
639 string, and invalid options are ignored:
640 .ie n .IP """no\-aliases""" 4
641 .el .IP "\f(CWno\-aliases\fR" 4
642 .IX Item "no-aliases"
643 Print the 'raw' instruction mnemonic instead of some pseudo
644 instruction mnemonic. I.e., print 'daddu' or 'or' instead of 'move',
645 \&'sll' instead of 'nop', etc.
646 .ie n .IP """msa""" 4
647 .el .IP "\f(CWmsa\fR" 4
649 Disassemble \s-1MSA\s0 instructions.
650 .ie n .IP """virt""" 4
651 .el .IP "\f(CWvirt\fR" 4
653 Disassemble the virtualization \s-1ASE\s0 instructions.
654 .ie n .IP """xpa""" 4
655 .el .IP "\f(CWxpa\fR" 4
657 Disassemble the eXtended Physical Address (\s-1XPA\s0) \s-1ASE\s0 instructions.
658 .ie n .IP """gpr\-names=\fIABI\fP""" 4
659 .el .IP "\f(CWgpr\-names=\f(CIABI\f(CW\fR" 4
660 .IX Item "gpr-names=ABI"
661 Print \s-1GPR\s0 (general-purpose register) names as appropriate
662 for the specified \s-1ABI.\s0 By default, \s-1GPR\s0 names are selected according to
663 the \s-1ABI\s0 of the binary being disassembled.
664 .ie n .IP """fpr\-names=\fIABI\fP""" 4
665 .el .IP "\f(CWfpr\-names=\f(CIABI\f(CW\fR" 4
666 .IX Item "fpr-names=ABI"
667 Print \s-1FPR\s0 (floating-point register) names as
668 appropriate for the specified \s-1ABI.\s0 By default, \s-1FPR\s0 numbers are printed
670 .ie n .IP """cp0\-names=\fIARCH\fP""" 4
671 .el .IP "\f(CWcp0\-names=\f(CIARCH\f(CW\fR" 4
672 .IX Item "cp0-names=ARCH"
673 Print \s-1CP0\s0 (system control coprocessor; coprocessor 0) register names
674 as appropriate for the \s-1CPU\s0 or architecture specified by
675 \&\fI\s-1ARCH\s0\fR. By default, \s-1CP0\s0 register names are selected according to
676 the architecture and \s-1CPU\s0 of the binary being disassembled.
677 .ie n .IP """hwr\-names=\fIARCH\fP""" 4
678 .el .IP "\f(CWhwr\-names=\f(CIARCH\f(CW\fR" 4
679 .IX Item "hwr-names=ARCH"
680 Print \s-1HWR\s0 (hardware register, used by the \f(CW\*(C`rdhwr\*(C'\fR instruction) names
681 as appropriate for the \s-1CPU\s0 or architecture specified by
682 \&\fI\s-1ARCH\s0\fR. By default, \s-1HWR\s0 names are selected according to
683 the architecture and \s-1CPU\s0 of the binary being disassembled.
684 .ie n .IP """reg\-names=\fIABI\fP""" 4
685 .el .IP "\f(CWreg\-names=\f(CIABI\f(CW\fR" 4
686 .IX Item "reg-names=ABI"
687 Print \s-1GPR\s0 and \s-1FPR\s0 names as appropriate for the selected \s-1ABI.\s0
688 .ie n .IP """reg\-names=\fIARCH\fP""" 4
689 .el .IP "\f(CWreg\-names=\f(CIARCH\f(CW\fR" 4
690 .IX Item "reg-names=ARCH"
691 Print CPU-specific register names (\s-1CP0\s0 register and \s-1HWR\s0 names)
692 as appropriate for the selected \s-1CPU\s0 or architecture.
696 For any of the options listed above, \fI\s-1ABI\s0\fR or
697 \&\fI\s-1ARCH\s0\fR may be specified as \fBnumeric\fR to have numbers printed
698 rather than names, for the selected types of registers.
699 You can list the available values of \fI\s-1ABI\s0\fR and \fI\s-1ARCH\s0\fR using
700 the \fB\-\-help\fR option.
702 For \s-1VAX,\s0 you can specify function entry addresses with \fB\-M
703 entry:0xf00ba\fR. You can use this multiple times to properly
704 disassemble \s-1VAX\s0 binary files that don't contain symbol tables (like
705 \&\s-1ROM\s0 dumps). In these cases, the function entry mask would otherwise
706 be decoded as \s-1VAX\s0 instructions, which would probably lead the rest
707 of the function being wrongly disassembled.
712 .IP "\fB\-\-private\-headers\fR" 4
713 .IX Item "--private-headers"
715 Print information that is specific to the object file format. The exact
716 information printed depends upon the object file format. For some
717 object file formats, no additional information is printed.
718 .IP "\fB\-P\fR \fIoptions\fR" 4
719 .IX Item "-P options"
721 .IP "\fB\-\-private=\fR\fIoptions\fR" 4
722 .IX Item "--private=options"
724 Print information that is specific to the object file format. The
725 argument \fIoptions\fR is a comma separated list that depends on the
726 format (the lists of options is displayed with the help).
728 For \s-1XCOFF,\s0 the available options are:
730 .ie n .IP """header""" 4
731 .el .IP "\f(CWheader\fR" 4
734 .ie n .IP """aout""" 4
735 .el .IP "\f(CWaout\fR" 4
737 .ie n .IP """sections""" 4
738 .el .IP "\f(CWsections\fR" 4
740 .ie n .IP """syms""" 4
741 .el .IP "\f(CWsyms\fR" 4
743 .ie n .IP """relocs""" 4
744 .el .IP "\f(CWrelocs\fR" 4
746 .ie n .IP """lineno,""" 4
747 .el .IP "\f(CWlineno,\fR" 4
749 .ie n .IP """loader""" 4
750 .el .IP "\f(CWloader\fR" 4
752 .ie n .IP """except""" 4
753 .el .IP "\f(CWexcept\fR" 4
755 .ie n .IP """typchk""" 4
756 .el .IP "\f(CWtypchk\fR" 4
758 .ie n .IP """traceback""" 4
759 .el .IP "\f(CWtraceback\fR" 4
761 .ie n .IP """toc""" 4
762 .el .IP "\f(CWtoc\fR" 4
764 .ie n .IP """ldinfo""" 4
765 .el .IP "\f(CWldinfo\fR" 4
771 Not all object formats support this option. In particular the \s-1ELF\s0
772 format does not use it.
777 .IP "\fB\-\-reloc\fR" 4
780 Print the relocation entries of the file. If used with \fB\-d\fR or
781 \&\fB\-D\fR, the relocations are printed interspersed with the
786 .IP "\fB\-\-dynamic\-reloc\fR" 4
787 .IX Item "--dynamic-reloc"
789 Print the dynamic relocation entries of the file. This is only
790 meaningful for dynamic objects, such as certain types of shared
791 libraries. As for \fB\-r\fR, if used with \fB\-d\fR or
792 \&\fB\-D\fR, the relocations are printed interspersed with the
797 .IP "\fB\-\-full\-contents\fR" 4
798 .IX Item "--full-contents"
800 Display the full contents of any sections requested. By default all
801 non-empty sections are displayed.
805 .IP "\fB\-\-source\fR" 4
808 Display source code intermixed with disassembly, if possible. Implies
810 .IP "\fB\-\-source\-comment[=\fR\fItxt\fR\fB]\fR" 4
811 .IX Item "--source-comment[=txt]"
812 Like the \fB\-S\fR option, but all source code lines are displayed
813 with a prefix of \fItxt\fR. Typically \fItxt\fR will be a comment
814 string which can be used to distinguish the assembler code from the
815 source code. If \fItxt\fR is not provided then a default string of
816 \&\fI\*(L"# \*(R"\fR (hash followed by a space), will be used.
817 .IP "\fB\-\-prefix=\fR\fIprefix\fR" 4
818 .IX Item "--prefix=prefix"
819 Specify \fIprefix\fR to add to the absolute paths when used with
821 .IP "\fB\-\-prefix\-strip=\fR\fIlevel\fR" 4
822 .IX Item "--prefix-strip=level"
823 Indicate how many initial directory names to strip off the hardwired
824 absolute paths. It has no effect without \fB\-\-prefix=\fR\fIprefix\fR.
825 .IP "\fB\-\-show\-raw\-insn\fR" 4
826 .IX Item "--show-raw-insn"
827 When disassembling instructions, print the instruction in hex as well as
828 in symbolic form. This is the default except when
829 \&\fB\-\-prefix\-addresses\fR is used.
830 .IP "\fB\-\-no\-show\-raw\-insn\fR" 4
831 .IX Item "--no-show-raw-insn"
832 When disassembling instructions, do not print the instruction bytes.
833 This is the default when \fB\-\-prefix\-addresses\fR is used.
834 .IP "\fB\-\-insn\-width=\fR\fIwidth\fR" 4
835 .IX Item "--insn-width=width"
836 Display \fIwidth\fR bytes on a single line when disassembling
838 .IP "\fB\-\-visualize\-jumps[=color|=extended\-color|=off]\fR" 4
839 .IX Item "--visualize-jumps[=color|=extended-color|=off]"
840 Visualize jumps that stay inside a function by drawing \s-1ASCII\s0 art between
841 the start and target addresses. The optional \fB=color\fR argument
842 adds color to the output using simple terminal colors. Alternatively
843 the \fB=extended\-color\fR argument will add color using 8bit
844 colors, but these might not work on all terminals.
846 If it is necessary to disable the \fBvisualize-jumps\fR option
847 after it has previously been enabled then use
848 \&\fBvisualize\-jumps=off\fR.
849 .IP "\fB\-W[lLiaprmfFsoORtUuTgAckK]\fR" 4
850 .IX Item "-W[lLiaprmfFsoORtUuTgAckK]"
852 .IP "\fB\-\-dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=str\-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow\-links]\fR" 4
853 .IX Item "--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]"
855 Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
856 are present. Compressed debug sections are automatically decompressed
857 (temporarily) before they are displayed. If one or more of the
858 optional letters or words follows the switch then only those type(s)
859 of data will be dumped. The letters and words refer to the following
863 .el .IP "\f(CWa\fR" 4
866 .ie n .IP """=abbrev""" 4
867 .el .IP "\f(CW=abbrev\fR" 4
870 Displays the contents of the \fB.debug_abbrev\fR section.
872 .el .IP "\f(CWA\fR" 4
875 .ie n .IP """=addr""" 4
876 .el .IP "\f(CW=addr\fR" 4
879 Displays the contents of the \fB.debug_addr\fR section.
881 .el .IP "\f(CWc\fR" 4
884 .ie n .IP """=cu_index""" 4
885 .el .IP "\f(CW=cu_index\fR" 4
888 Displays the contents of the \fB.debug_cu_index\fR and/or
889 \&\fB.debug_tu_index\fR sections.
891 .el .IP "\f(CWf\fR" 4
894 .ie n .IP """=frames""" 4
895 .el .IP "\f(CW=frames\fR" 4
898 Display the raw contents of a \fB.debug_frame\fR section.
900 .el .IP "\f(CWF\fR" 4
903 .ie n .IP """=frames\-interp""" 4
904 .el .IP "\f(CW=frames\-interp\fR" 4
905 .IX Item "=frames-interp"
907 Display the interpreted contents of a \fB.debug_frame\fR section.
909 .el .IP "\f(CWg\fR" 4
912 .ie n .IP """=gdb_index""" 4
913 .el .IP "\f(CW=gdb_index\fR" 4
914 .IX Item "=gdb_index"
916 Displays the contents of the \fB.gdb_index\fR and/or
917 \&\fB.debug_names\fR sections.
919 .el .IP "\f(CWi\fR" 4
922 .ie n .IP """=info""" 4
923 .el .IP "\f(CW=info\fR" 4
926 Displays the contents of the \fB.debug_info\fR section. Note: the
927 output from this option can also be restricted by the use of the
928 \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
930 .el .IP "\f(CWk\fR" 4
933 .ie n .IP """=links""" 4
934 .el .IP "\f(CW=links\fR" 4
937 Displays the contents of the \fB.gnu_debuglink\fR,
938 \&\fB.gnu_debugaltlink\fR and \fB.debug_sup\fR sections, if any of
939 them are present. Also displays any links to separate dwarf object
940 files (dwo), if they are specified by the DW_AT_GNU_dwo_name or
941 DW_AT_dwo_name attributes in the \fB.debug_info\fR section.
943 .el .IP "\f(CWK\fR" 4
946 .ie n .IP """=follow\-links""" 4
947 .el .IP "\f(CW=follow\-links\fR" 4
948 .IX Item "=follow-links"
950 Display the contents of any selected debug sections that are found in
951 linked, separate debug info file(s). This can result in multiple
952 versions of the same debug section being displayed if it exists in
955 In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
956 references the separate debug info file, then the referenced contents
957 will also be displayed.
959 Note \- in some distributions this option is enabled by default. It
960 can be disabled via the \fBN\fR debug option. The default can be
961 chosen when configuring the binutils via the
962 \&\fB\-\-enable\-follow\-debug\-links=yes\fR or
963 \&\fB\-\-enable\-follow\-debug\-links=no\fR options. If these are not
964 used then the default is to enable the following of debug links.
966 .el .IP "\f(CWN\fR" 4
969 .ie n .IP """=no\-follow\-links""" 4
970 .el .IP "\f(CW=no\-follow\-links\fR" 4
971 .IX Item "=no-follow-links"
973 Disables the following of links to separate debug info files.
975 .el .IP "\f(CWl\fR" 4
978 .ie n .IP """=rawline""" 4
979 .el .IP "\f(CW=rawline\fR" 4
982 Displays the contents of the \fB.debug_line\fR section in a raw
985 .el .IP "\f(CWL\fR" 4
988 .ie n .IP """=decodedline""" 4
989 .el .IP "\f(CW=decodedline\fR" 4
990 .IX Item "=decodedline"
992 Displays the interpreted contents of the \fB.debug_line\fR section.
994 .el .IP "\f(CWm\fR" 4
997 .ie n .IP """=macro""" 4
998 .el .IP "\f(CW=macro\fR" 4
1001 Displays the contents of the \fB.debug_macro\fR and/or
1002 \&\fB.debug_macinfo\fR sections.
1004 .el .IP "\f(CWo\fR" 4
1007 .ie n .IP """=loc""" 4
1008 .el .IP "\f(CW=loc\fR" 4
1011 Displays the contents of the \fB.debug_loc\fR and/or
1012 \&\fB.debug_loclists\fR sections.
1014 .el .IP "\f(CWO\fR" 4
1017 .ie n .IP """=str\-offsets""" 4
1018 .el .IP "\f(CW=str\-offsets\fR" 4
1019 .IX Item "=str-offsets"
1021 Displays the contents of the \fB.debug_str_offsets\fR section.
1023 .el .IP "\f(CWp\fR" 4
1026 .ie n .IP """=pubnames""" 4
1027 .el .IP "\f(CW=pubnames\fR" 4
1028 .IX Item "=pubnames"
1030 Displays the contents of the \fB.debug_pubnames\fR and/or
1031 \&\fB.debug_gnu_pubnames\fR sections.
1033 .el .IP "\f(CWr\fR" 4
1036 .ie n .IP """=aranges""" 4
1037 .el .IP "\f(CW=aranges\fR" 4
1040 Displays the contents of the \fB.debug_aranges\fR section.
1042 .el .IP "\f(CWR\fR" 4
1045 .ie n .IP """=Ranges""" 4
1046 .el .IP "\f(CW=Ranges\fR" 4
1049 Displays the contents of the \fB.debug_ranges\fR and/or
1050 \&\fB.debug_rnglists\fR sections.
1052 .el .IP "\f(CWs\fR" 4
1055 .ie n .IP """=str""" 4
1056 .el .IP "\f(CW=str\fR" 4
1059 Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
1060 and/or \fB.debug_str_offsets\fR sections.
1062 .el .IP "\f(CWt\fR" 4
1065 .ie n .IP """=pubtype""" 4
1066 .el .IP "\f(CW=pubtype\fR" 4
1069 Displays the contents of the \fB.debug_pubtypes\fR and/or
1070 \&\fB.debug_gnu_pubtypes\fR sections.
1072 .el .IP "\f(CWT\fR" 4
1075 .ie n .IP """=trace_aranges""" 4
1076 .el .IP "\f(CW=trace_aranges\fR" 4
1077 .IX Item "=trace_aranges"
1079 Displays the contents of the \fB.trace_aranges\fR section.
1081 .el .IP "\f(CWu\fR" 4
1084 .ie n .IP """=trace_abbrev""" 4
1085 .el .IP "\f(CW=trace_abbrev\fR" 4
1086 .IX Item "=trace_abbrev"
1088 Displays the contents of the \fB.trace_abbrev\fR section.
1090 .el .IP "\f(CWU\fR" 4
1093 .ie n .IP """=trace_info""" 4
1094 .el .IP "\f(CW=trace_info\fR" 4
1095 .IX Item "=trace_info"
1097 Displays the contents of the \fB.trace_info\fR section.
1101 Note: displaying the contents of \fB.debug_static_funcs\fR,
1102 \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
1103 currently supported.
1105 .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
1106 .IX Item "--dwarf-depth=n"
1107 Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
1108 This is only useful with \fB\-\-debug\-dump=info\fR. The default is
1109 to print all DIEs; the special value 0 for \fIn\fR will also have this
1112 With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
1113 levels will not be printed. The range for \fIn\fR is zero-based.
1114 .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
1115 .IX Item "--dwarf-start=n"
1116 Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
1117 useful with \fB\-\-debug\-dump=info\fR.
1119 If specified, this option will suppress printing of any header
1120 information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
1121 siblings and children of the specified \s-1DIE\s0 will be printed.
1123 This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
1124 .IP "\fB\-\-dwarf\-check\fR" 4
1125 .IX Item "--dwarf-check"
1126 Enable additional checks for consistency of Dwarf information.
1127 .IP "\fB\-\-ctf[=\fR\fIsection\fR\fB]\fR" 4
1128 .IX Item "--ctf[=section]"
1129 Display the contents of the specified \s-1CTF\s0 section. \s-1CTF\s0 sections themselves
1130 contain many subsections, all of which are displayed in order.
1132 By default, display the name of the section named \fI.ctf\fR, which is the
1133 name emitted by \fBld\fR.
1134 .IP "\fB\-\-ctf\-parent=\fR\fImember\fR" 4
1135 .IX Item "--ctf-parent=member"
1136 If the \s-1CTF\s0 section contains ambiguously-defined types, it will consist
1137 of an archive of many \s-1CTF\s0 dictionaries, all inheriting from one
1138 dictionary containing unambiguous types. This member is by default
1139 named \fI.ctf\fR, like the section containing it, but it is possible to
1140 change this name using the \f(CW\*(C`ctf_link_set_memb_name_changer\*(C'\fR
1141 function at link time. When looking at \s-1CTF\s0 archives that have been
1142 created by a linker that uses the name changer to rename the parent
1143 archive member, \fB\-\-ctf\-parent\fR can be used to specify the name
1144 used for the parent.
1148 .IP "\fB\-\-stabs\fR" 4
1151 Display the full contents of any sections requested. Display the
1152 contents of the .stab and .stab.index and .stab.excl sections from an
1153 \&\s-1ELF\s0 file. This is only useful on systems (such as Solaris 2.0) in which
1154 \&\f(CW\*(C`.stab\*(C'\fR debugging symbol-table entries are carried in an \s-1ELF\s0
1155 section. In most other file formats, debugging symbol-table entries are
1156 interleaved with linkage symbols, and are visible in the \fB\-\-syms\fR
1158 .IP "\fB\-\-start\-address=\fR\fIaddress\fR" 4
1159 .IX Item "--start-address=address"
1160 Start displaying data at the specified address. This affects the output
1161 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
1162 .IP "\fB\-\-stop\-address=\fR\fIaddress\fR" 4
1163 .IX Item "--stop-address=address"
1164 Stop displaying data at the specified address. This affects the output
1165 of the \fB\-d\fR, \fB\-r\fR and \fB\-s\fR options.
1169 .IP "\fB\-\-syms\fR" 4
1172 Print the symbol table entries of the file.
1173 This is similar to the information provided by the \fBnm\fR program,
1174 although the display format is different. The format of the output
1175 depends upon the format of the file being dumped, but there are two main
1176 types. One looks like this:
1179 \& [ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss
1180 \& [ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fred
1183 where the number inside the square brackets is the number of the entry
1184 in the symbol table, the \fIsec\fR number is the section number, the
1185 \&\fIfl\fR value are the symbol's flag bits, the \fIty\fR number is the
1186 symbol's type, the \fIscl\fR number is the symbol's storage class and
1187 the \fInx\fR value is the number of auxiliary entries associated with
1188 the symbol. The last two fields are the symbol's value and its name.
1190 The other common output format, usually seen with \s-1ELF\s0 based files,
1194 \& 00000000 l d .bss 00000000 .bss
1195 \& 00000000 g .text 00000000 fred
1198 Here the first number is the symbol's value (sometimes referred to as
1199 its address). The next field is actually a set of characters and
1200 spaces indicating the flag bits that are set on the symbol. These
1201 characters are described below. Next is the section with which the
1202 symbol is associated or \fI*ABS*\fR if the section is absolute (ie
1203 not connected with any section), or \fI*UND*\fR if the section is
1204 referenced in the file being dumped, but not defined there.
1206 After the section name comes another field, a number, which for common
1207 symbols is the alignment and for other symbol is the size. Finally
1208 the symbol's name is displayed.
1210 The flag characters are divided into 7 groups as follows:
1213 .el .IP "\f(CWl\fR" 4
1217 .el .IP "\f(CWg\fR" 4
1220 .el .IP "\f(CWu\fR" 4
1223 .el .IP "\f(CW!\fR" 4
1226 The symbol is a local (l), global (g), unique global (u), neither
1227 global nor local (a space) or both global and local (!). A
1228 symbol can be neither local or global for a variety of reasons, e.g.,
1229 because it is used for debugging, but it is probably an indication of
1230 a bug if it is ever both local and global. Unique global symbols are
1231 a \s-1GNU\s0 extension to the standard set of \s-1ELF\s0 symbol bindings. For such
1232 a symbol the dynamic linker will make sure that in the entire process
1233 there is just one symbol with this name and type in use.
1235 .el .IP "\f(CWw\fR" 4
1237 The symbol is weak (w) or strong (a space).
1239 .el .IP "\f(CWC\fR" 4
1241 The symbol denotes a constructor (C) or an ordinary symbol (a space).
1243 .el .IP "\f(CWW\fR" 4
1245 The symbol is a warning (W) or a normal symbol (a space). A warning
1246 symbol's name is a message to be displayed if the symbol following the
1247 warning symbol is ever referenced.
1249 .el .IP "\f(CWI\fR" 4
1253 .el .IP "\f(CWi\fR" 4
1256 The symbol is an indirect reference to another symbol (I), a function
1257 to be evaluated during reloc processing (i) or a normal symbol (a
1260 .el .IP "\f(CWd\fR" 4
1264 .el .IP "\f(CWD\fR" 4
1267 The symbol is a debugging symbol (d) or a dynamic symbol (D) or a
1268 normal symbol (a space).
1270 .el .IP "\f(CWF\fR" 4
1274 .el .IP "\f(CWf\fR" 4
1277 .el .IP "\f(CWO\fR" 4
1280 The symbol is the name of a function (F) or a file (f) or an object
1281 (O) or just a normal symbol (a space).
1288 .IP "\fB\-\-dynamic\-syms\fR" 4
1289 .IX Item "--dynamic-syms"
1291 Print the dynamic symbol table entries of the file. This is only
1292 meaningful for dynamic objects, such as certain types of shared
1293 libraries. This is similar to the information provided by the \fBnm\fR
1294 program when given the \fB\-D\fR (\fB\-\-dynamic\fR) option.
1296 The output format is similar to that produced by the \fB\-\-syms\fR
1297 option, except that an extra field is inserted before the symbol's
1298 name, giving the version information associated with the symbol.
1299 If the version is the default version to be used when resolving
1300 unversioned references to the symbol then it's displayed as is,
1301 otherwise it's put into parentheses.
1302 .IP "\fB\-\-special\-syms\fR" 4
1303 .IX Item "--special-syms"
1304 When displaying symbols include those which the target considers to be
1305 special in some way and which would not normally be of interest to the
1307 .IP "\fB\-U\fR \fI[d|i|l|e|x|h]\fR" 4
1308 .IX Item "-U [d|i|l|e|x|h]"
1310 .IP "\fB\-\-unicode=\fR\fI[default|invalid|locale|escape|hex|highlight]\fR" 4
1311 .IX Item "--unicode=[default|invalid|locale|escape|hex|highlight]"
1313 Controls the display of \s-1UTF\-8\s0 encoded multibyte characters in strings.
1314 The default (\fB\-\-unicode=default\fR) is to give them no special
1315 treatment. The \fB\-\-unicode=locale\fR option displays the sequence
1316 in the current locale, which may or may not support them. The options
1317 \&\fB\-\-unicode=hex\fR and \fB\-\-unicode=invalid\fR display them as
1318 hex byte sequences enclosed by either angle brackets or curly braces.
1320 The \fB\-\-unicode=escape\fR option displays them as escape sequences
1321 (\fI\euxxxx\fR) and the \fB\-\-unicode=highlight\fR option displays
1322 them as escape sequences highlighted in red (if supported by the
1323 output device). The colouring is intended to draw attention to the
1324 presence of unicode sequences where they might not be expected.
1328 .IP "\fB\-\-version\fR" 4
1329 .IX Item "--version"
1331 Print the version number of \fBobjdump\fR and exit.
1335 .IP "\fB\-\-all\-headers\fR" 4
1336 .IX Item "--all-headers"
1338 Display all available header information, including the symbol table and
1339 relocation entries. Using \fB\-x\fR is equivalent to specifying all of
1340 \&\fB\-a \-f \-h \-p \-r \-t\fR.
1344 .IP "\fB\-\-wide\fR" 4
1347 Format some lines for output devices that have more than 80 columns.
1348 Also do not truncate symbol names when they are displayed.
1352 .IP "\fB\-\-disassemble\-zeroes\fR" 4
1353 .IX Item "--disassemble-zeroes"
1355 Normally the disassembly output will skip blocks of zeroes. This
1356 option directs the disassembler to disassemble those blocks, just like
1358 .IP "\fB@\fR\fIfile\fR" 4
1360 Read command-line options from \fIfile\fR. The options read are
1361 inserted in place of the original @\fIfile\fR option. If \fIfile\fR
1362 does not exist, or cannot be read, then the option will be treated
1363 literally, and not removed.
1365 Options in \fIfile\fR are separated by whitespace. A whitespace
1366 character may be included in an option by surrounding the entire
1367 option in either single or double quotes. Any character (including a
1368 backslash) may be included by prefixing the character to be included
1369 with a backslash. The \fIfile\fR may itself contain additional
1370 @\fIfile\fR options; any such options will be processed recursively.
1372 .IX Header "SEE ALSO"
1373 \&\fBnm\fR\|(1), \fBreadelf\fR\|(1), and the Info entries for \fIbinutils\fR.
1375 .IX Header "COPYRIGHT"
1376 Copyright (c) 1991\-2022 Free Software Foundation, Inc.
1378 Permission is granted to copy, distribute and/or modify this document
1379 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
1380 or any later version published by the Free Software Foundation;
1381 with no Invariant Sections, with no Front-Cover Texts, and with no
1382 Back-Cover Texts. A copy of the license is included in the
1383 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".