1OBJDUMP(1)                   GNU Development Tools                  OBJDUMP(1)
2
3
4

NAME

6       objdump - display information from object files
7

SYNOPSIS

9       objdump [-a|--archive-headers]
10               [-b bfdname|--target=bfdname]
11               [-C|--demangle[=style] ]
12               [-d|--disassemble[=symbol]]
13               [-D|--disassemble-all]
14               [-z|--disassemble-zeroes]
15               [-EB|-EL|--endian={big | little }]
16               [-f|--file-headers]
17               [-F|--file-offsets]
18               [--file-start-context]
19               [-g|--debugging]
20               [-e|--debugging-tags]
21               [-h|--section-headers|--headers]
22               [-i|--info]
23               [-j section|--section=section]
24               [-l|--line-numbers]
25               [-S|--source]
26               [--source-comment[=text]]
27               [-m machine|--architecture=machine]
28               [-M options|--disassembler-options=options]
29               [-p|--private-headers]
30               [-P options|--private=options]
31               [-r|--reloc]
32               [-R|--dynamic-reloc]
33               [-s|--full-contents]
34               [-W[lLiaprmfFsoORtUuTgAck]|
35                --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]]
36               [-WK|--dwarf=follow-links]
37               [-WN|--dwarf=no-follow-links]
38               [-wD|--dwarf=use-debuginfod]
39               [-wE|--dwarf=do-not-use-debuginfod]
40               [-L|--process-links]
41               [--ctf=section]
42               [-G|--stabs]
43               [-t|--syms]
44               [-T|--dynamic-syms]
45               [-x|--all-headers]
46               [-w|--wide]
47               [--start-address=address]
48               [--stop-address=address]
49               [--no-addresses]
50               [--prefix-addresses]
51               [--[no-]show-raw-insn]
52               [--adjust-vma=offset]
53               [--dwarf-depth=n]
54               [--dwarf-start=n]
55               [--ctf-parent=section]
56               [--no-recurse-limit|--recurse-limit]
57               [--special-syms]
58               [--prefix=prefix]
59               [--prefix-strip=level]
60               [--insn-width=width]
61               [--visualize-jumps[=color|=extended-color|=off]
62               [--disassembler-color=[color|extended-color|off]
63               [-U method] [--unicode=method]
64               [-V|--version]
65               [-H|--help]
66               objfile...
67

DESCRIPTION

69       objdump displays information about one or more object files.  The
70       options control what particular information to display.  This
71       information is mostly useful to programmers who are working on the
72       compilation tools, as opposed to programmers who just want their
73       program to compile and work.
74
75       objfile... are the object files to be examined.  When you specify
76       archives, objdump shows information on each of the member object files.
77

OPTIONS

79       The long and short forms of options, shown here as alternatives, are
80       equivalent.  At least one option from the list
81       -a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-P,-r,-R,-s,-S,-t,-T,-V,-x must be given.
82
83       -a
84       --archive-header
85           If any of the objfile files are archives, display the archive
86           header information (in a format similar to ls -l).  Besides the
87           information you could list with ar tv, objdump -a shows the object
88           file format of each archive member.
89
90       --adjust-vma=offset
91           When dumping information, first add offset to all the section
92           addresses.  This is useful if the section addresses do not
93           correspond to the symbol table, which can happen when putting
94           sections at particular addresses when using a format which can not
95           represent section addresses, such as a.out.
96
97       -b bfdname
98       --target=bfdname
99           Specify that the object-code format for the object files is
100           bfdname.  This option may not be necessary; objdump can
101           automatically recognize many formats.
102
103           For example,
104
105                   objdump -b oasys -m vax -h fu.o
106
107           displays summary information from the section headers (-h) of fu.o,
108           which is explicitly identified (-m) as a VAX object file in the
109           format produced by Oasys compilers.  You can list the formats
110           available with the -i option.
111
112       -C
113       --demangle[=style]
114           Decode (demangle) low-level symbol names into user-level names.
115           Besides removing any initial underscore prepended by the system,
116           this makes C++ function names readable.  Different compilers have
117           different mangling styles. The optional demangling style argument
118           can be used to choose an appropriate demangling style for your
119           compiler.
120
121       --recurse-limit
122       --no-recurse-limit
123       --recursion-limit
124       --no-recursion-limit
125           Enables or disables a limit on the amount of recursion performed
126           whilst demangling strings.  Since the name mangling formats allow
127           for an infinite level of recursion it is possible to create strings
128           whose decoding will exhaust the amount of stack space available on
129           the host machine, triggering a memory fault.  The limit tries to
130           prevent this from happening by restricting recursion to 2048 levels
131           of nesting.
132
133           The default is for this limit to be enabled, but disabling it may
134           be necessary in order to demangle truly complicated names.  Note
135           however that if the recursion limit is disabled then stack
136           exhaustion is possible and any bug reports about such an event will
137           be rejected.
138
139       -g
140       --debugging
141           Display debugging information.  This attempts to parse STABS
142           debugging format information stored in the file and print it out
143           using a C like syntax.  If no STABS debugging was found this option
144           falls back on the -W option to print any DWARF information in the
145           file.
146
147       -e
148       --debugging-tags
149           Like -g, but the information is generated in a format compatible
150           with ctags tool.
151
152       -d
153       --disassemble
154       --disassemble=symbol
155           Display the assembler mnemonics for the machine instructions from
156           the input file.  This option only disassembles those sections which
157           are expected to contain instructions.  If the optional symbol
158           argument is given, then display the assembler mnemonics starting at
159           symbol.  If symbol is a function name then disassembly will stop at
160           the end of the function, otherwise it will stop when the next
161           symbol is encountered.  If there are no matches for symbol then
162           nothing will be displayed.
163
164           Note if the --dwarf=follow-links option is enabled then any symbol
165           tables in linked debug info files will be read in and used when
166           disassembling.
167
168       -D
169       --disassemble-all
170           Like -d, but disassemble the contents of all sections, not just
171           those expected to contain instructions.
172
173           This option also has a subtle effect on the disassembly of
174           instructions in code sections.  When option -d is in effect objdump
175           will assume that any symbols present in a code section occur on the
176           boundary between instructions and it will refuse to disassemble
177           across such a boundary.  When option -D is in effect however this
178           assumption is supressed.  This means that it is possible for the
179           output of -d and -D to differ if, for example, data is stored in
180           code sections.
181
182           If the target is an ARM architecture this switch also has the
183           effect of forcing the disassembler to decode pieces of data found
184           in code sections as if they were instructions.
185
186           Note if the --dwarf=follow-links option is enabled then any symbol
187           tables in linked debug info files will be read in and used when
188           disassembling.
189
190       --no-addresses
191           When disassembling, don't print addresses on each line or for
192           symbols and relocation offsets.  In combination with
193           --no-show-raw-insn this may be useful for comparing compiler
194           output.
195
196       --prefix-addresses
197           When disassembling, print the complete address on each line.  This
198           is the older disassembly format.
199
200       -EB
201       -EL
202       --endian={big|little}
203           Specify the endianness of the object files.  This only affects
204           disassembly.  This can be useful when disassembling a file format
205           which does not describe endianness information, such as S-records.
206
207       -f
208       --file-headers
209           Display summary information from the overall header of each of the
210           objfile files.
211
212       -F
213       --file-offsets
214           When disassembling sections, whenever a symbol is displayed, also
215           display the file offset of the region of data that is about to be
216           dumped.  If zeroes are being skipped, then when disassembly
217           resumes, tell the user how many zeroes were skipped and the file
218           offset of the location from where the disassembly resumes.  When
219           dumping sections, display the file offset of the location from
220           where the dump starts.
221
222       --file-start-context
223           Specify that when displaying interlisted source code/disassembly
224           (assumes -S) from a file that has not yet been displayed, extend
225           the context to the start of the file.
226
227       -h
228       --section-headers
229       --headers
230           Display summary information from the section headers of the object
231           file.
232
233           File segments may be relocated to nonstandard addresses, for
234           example by using the -Ttext, -Tdata, or -Tbss options to ld.
235           However, some object file formats, such as a.out, do not store the
236           starting address of the file segments.  In those situations,
237           although ld relocates the sections correctly, using objdump -h to
238           list the file section headers cannot show the correct addresses.
239           Instead, it shows the usual addresses, which are implicit for the
240           target.
241
242           Note, in some cases it is possible for a section to have both the
243           READONLY and the NOREAD attributes set.  In such cases the NOREAD
244           attribute takes precedence, but objdump will report both since the
245           exact setting of the flag bits might be important.
246
247       -H
248       --help
249           Print a summary of the options to objdump and exit.
250
251       -i
252       --info
253           Display a list showing all architectures and object formats
254           available for specification with -b or -m.
255
256       -j name
257       --section=name
258           Display information only for section name.
259
260       -L
261       --process-links
262           Display the contents of non-debug sections found in separate
263           debuginfo files that are linked to the main file.  This option
264           automatically implies the -WK option, and only sections requested
265           by other command line options will be displayed.
266
267       -l
268       --line-numbers
269           Label the display (using debugging information) with the filename
270           and source line numbers corresponding to the object code or relocs
271           shown.  Only useful with -d, -D, or -r.
272
273       -m machine
274       --architecture=machine
275           Specify the architecture to use when disassembling object files.
276           This can be useful when disassembling object files which do not
277           describe architecture information, such as S-records.  You can list
278           the available architectures with the -i option.
279
280           If the target is an ARM architecture then this switch has an
281           additional effect.  It restricts the disassembly to only those
282           instructions supported by the architecture specified by machine.
283           If it is necessary to use this switch because the input file does
284           not contain any architecture information, but it is also desired to
285           disassemble all the instructions use -marm.
286
287       -M options
288       --disassembler-options=options
289           Pass target specific information to the disassembler.  Only
290           supported on some targets.  If it is necessary to specify more than
291           one disassembler option then multiple -M options can be used or can
292           be placed together into a comma separated list.
293
294           For ARC, dsp controls the printing of DSP instructions, spfp
295           selects the printing of FPX single precision FP instructions, dpfp
296           selects the printing of FPX double precision FP instructions,
297           quarkse_em selects the printing of special QuarkSE-EM instructions,
298           fpuda selects the printing of double precision assist instructions,
299           fpus selects the printing of FPU single precision FP instructions,
300           while fpud selects the printing of FPU double precision FP
301           instructions.  Additionally, one can choose to have all the
302           immediates printed in hexadecimal using hex.  By default, the short
303           immediates are printed using the decimal representation, while the
304           long immediate values are printed as hexadecimal.
305
306           cpu=... allows one to enforce a particular ISA when disassembling
307           instructions, overriding the -m value or whatever is in the ELF
308           file.  This might be useful to select ARC EM or HS ISA, because
309           architecture is same for those and disassembler relies on private
310           ELF header data to decide if code is for EM or HS.  This option
311           might be specified multiple times - only the latest value will be
312           used.  Valid values are same as for the assembler -mcpu=... option.
313
314           If the target is an ARM architecture then this switch can be used
315           to select which register name set is used during disassembler.
316           Specifying -M reg-names-std (the default) will select the register
317           names as used in ARM's instruction set documentation, but with
318           register 13 called 'sp', register 14 called 'lr' and register 15
319           called 'pc'.  Specifying -M reg-names-apcs will select the name set
320           used by the ARM Procedure Call Standard, whilst specifying -M reg-
321           names-raw will just use r followed by the register number.
322
323           There are also two variants on the APCS register naming scheme
324           enabled by -M reg-names-atpcs and -M reg-names-special-atpcs which
325           use the ARM/Thumb Procedure Call Standard naming conventions.
326           (Either with the normal register names or the special register
327           names).
328
329           This option can also be used for ARM architectures to force the
330           disassembler to interpret all instructions as Thumb instructions by
331           using the switch --disassembler-options=force-thumb.  This can be
332           useful when attempting to disassemble thumb code produced by other
333           compilers.
334
335           For AArch64 targets this switch can be used to set whether
336           instructions are disassembled as the most general instruction using
337           the -M no-aliases option or whether instruction notes should be
338           generated as comments in the disasssembly using -M notes.
339
340           For the x86, some of the options duplicate functions of the -m
341           switch, but allow finer grained control.
342
343           "x86-64"
344           "i386"
345           "i8086"
346               Select disassembly for the given architecture.
347
348           "intel"
349           "att"
350               Select between intel syntax mode and AT&T syntax mode.
351
352           "amd64"
353           "intel64"
354               Select between AMD64 ISA and Intel64 ISA.
355
356           "intel-mnemonic"
357           "att-mnemonic"
358               Select between intel mnemonic mode and AT&T mnemonic mode.
359               Note: "intel-mnemonic" implies "intel" and "att-mnemonic"
360               implies "att".
361
362           "addr64"
363           "addr32"
364           "addr16"
365           "data32"
366           "data16"
367               Specify the default address size and operand size.  These five
368               options will be overridden if "x86-64", "i386" or "i8086"
369               appear later in the option string.
370
371           "suffix"
372               When in AT&T mode and also for a limited set of instructions
373               when in Intel mode, instructs the disassembler to print a
374               mnemonic suffix even when the suffix could be inferred by the
375               operands or, for certain instructions, the execution mode's
376               defaults.
377
378           For PowerPC, the -M argument raw selects disasssembly of hardware
379           insns rather than aliases.  For example, you will see "rlwinm"
380           rather than "clrlwi", and "addi" rather than "li".  All of the -m
381           arguments for gas that select a CPU are supported.  These are: 403,
382           405, 440, 464, 476, 601, 603, 604, 620, 7400, 7410, 7450, 7455,
383           750cl, 821, 850, 860, a2, booke, booke32, cell, com, e200z4, e300,
384           e500, e500mc, e500mc64, e500x2, e5500, e6500, efs, power4, power5,
385           power6, power7, power8, power9, power10, ppc, ppc32, ppc64,
386           ppc64bridge, ppcps, pwr, pwr2, pwr4, pwr5, pwr5x, pwr6, pwr7, pwr8,
387           pwr9, pwr10, pwrx, titan, and vle.  32 and 64 modify the default or
388           a prior CPU selection, disabling and enabling 64-bit insns
389           respectively.  In addition, altivec, any, htm, vsx, and spe add
390           capabilities to a previous or later CPU selection.  any will
391           disassemble any opcode known to binutils, but in cases where an
392           opcode has two different meanings or different arguments, you may
393           not see the disassembly you expect.  If you disassemble without
394           giving a CPU selection, a default will be chosen from information
395           gleaned by BFD from the object files headers, but the result again
396           may not be as you expect.
397
398           For MIPS, this option controls the printing of instruction mnemonic
399           names and register names in disassembled instructions.  Multiple
400           selections from the following may be specified as a comma separated
401           string, and invalid options are ignored:
402
403           "no-aliases"
404               Print the 'raw' instruction mnemonic instead of some pseudo
405               instruction mnemonic.  I.e., print 'daddu' or 'or' instead of
406               'move', 'sll' instead of 'nop', etc.
407
408           "msa"
409               Disassemble MSA instructions.
410
411           "virt"
412               Disassemble the virtualization ASE instructions.
413
414           "xpa"
415               Disassemble the eXtended Physical Address (XPA) ASE
416               instructions.
417
418           "gpr-names=ABI"
419               Print GPR (general-purpose register) names as appropriate for
420               the specified ABI.  By default, GPR names are selected
421               according to the ABI of the binary being disassembled.
422
423           "fpr-names=ABI"
424               Print FPR (floating-point register) names as appropriate for
425               the specified ABI.  By default, FPR numbers are printed rather
426               than names.
427
428           "cp0-names=ARCH"
429               Print CP0 (system control coprocessor; coprocessor 0) register
430               names as appropriate for the CPU or architecture specified by
431               ARCH.  By default, CP0 register names are selected according to
432               the architecture and CPU of the binary being disassembled.
433
434           "hwr-names=ARCH"
435               Print HWR (hardware register, used by the "rdhwr" instruction)
436               names as appropriate for the CPU or architecture specified by
437               ARCH.  By default, HWR names are selected according to the
438               architecture and CPU of the binary being disassembled.
439
440           "reg-names=ABI"
441               Print GPR and FPR names as appropriate for the selected ABI.
442
443           "reg-names=ARCH"
444               Print CPU-specific register names (CP0 register and HWR names)
445               as appropriate for the selected CPU or architecture.
446
447           For any of the options listed above, ABI or ARCH may be specified
448           as numeric to have numbers printed rather than names, for the
449           selected types of registers.  You can list the available values of
450           ABI and ARCH using the --help option.
451
452           For VAX, you can specify function entry addresses with -M
453           entry:0xf00ba.  You can use this multiple times to properly
454           disassemble VAX binary files that don't contain symbol tables (like
455           ROM dumps).  In these cases, the function entry mask would
456           otherwise be decoded as VAX instructions, which would probably lead
457           the rest of the function being wrongly disassembled.
458
459       -p
460       --private-headers
461           Print information that is specific to the object file format.  The
462           exact information printed depends upon the object file format.  For
463           some object file formats, no additional information is printed.
464
465       -P options
466       --private=options
467           Print information that is specific to the object file format.  The
468           argument options is a comma separated list that depends on the
469           format (the lists of options is displayed with the help).
470
471           For XCOFF, the available options are:
472
473           "header"
474           "aout"
475           "sections"
476           "syms"
477           "relocs"
478           "lineno,"
479           "loader"
480           "except"
481           "typchk"
482           "traceback"
483           "toc"
484           "ldinfo"
485
486           Not all object formats support this option.  In particular the ELF
487           format does not use it.
488
489       -r
490       --reloc
491           Print the relocation entries of the file.  If used with -d or -D,
492           the relocations are printed interspersed with the disassembly.
493
494       -R
495       --dynamic-reloc
496           Print the dynamic relocation entries of the file.  This is only
497           meaningful for dynamic objects, such as certain types of shared
498           libraries.  As for -r, if used with -d or -D, the relocations are
499           printed interspersed with the disassembly.
500
501       -s
502       --full-contents
503           Display the full contents of any sections requested.  By default
504           all non-empty sections are displayed.
505
506       -S
507       --source
508           Display source code intermixed with disassembly, if possible.
509           Implies -d.
510
511       --source-comment[=txt]
512           Like the -S option, but all source code lines are displayed with a
513           prefix of txt.  Typically txt will be a comment string which can be
514           used to distinguish the assembler code from the source code.  If
515           txt is not provided then a default string of "# " (hash followed by
516           a space), will be used.
517
518       --prefix=prefix
519           Specify prefix to add to the absolute paths when used with -S.
520
521       --prefix-strip=level
522           Indicate how many initial directory names to strip off the
523           hardwired absolute paths. It has no effect without --prefix=prefix.
524
525       --show-raw-insn
526           When disassembling instructions, print the instruction in hex as
527           well as in symbolic form.  This is the default except when
528           --prefix-addresses is used.
529
530       --no-show-raw-insn
531           When disassembling instructions, do not print the instruction
532           bytes.  This is the default when --prefix-addresses is used.
533
534       --insn-width=width
535           Display width bytes on a single line when disassembling
536           instructions.
537
538       --visualize-jumps[=color|=extended-color|=off]
539           Visualize jumps that stay inside a function by drawing ASCII art
540           between the start and target addresses.  The optional =color
541           argument adds color to the output using simple terminal colors.
542           Alternatively the =extended-color argument will add color using
543           8bit colors, but these might not work on all terminals.
544
545           If it is necessary to disable the visualize-jumps option after it
546           has previously been enabled then use visualize-jumps=off.
547
548       --disassembler-color=[color|extended-color|off]
549           Apply syntax highlighting to the disassembler output.  The color
550           argument adds color using simple terminal colors.  Alternatively
551           the extended-color argument will use 8bit colors, but these might
552           not work on all terminals.
553
554           If it is necessary to disable the --disassembler-color option after
555           it has previously been enabled then use --disassembler-color=off.
556
557       -W[lLiaprmfFsoORtUuTgAckK]
558       --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]
559           Displays the contents of the DWARF debug sections in the file, if
560           any are present.  Compressed debug sections are automatically
561           decompressed (temporarily) before they are displayed.  If one or
562           more of the optional letters or words follows the switch then only
563           those type(s) of data will be dumped.  The letters and words refer
564           to the following information:
565
566           "a"
567           "=abbrev"
568               Displays the contents of the .debug_abbrev section.
569
570           "A"
571           "=addr"
572               Displays the contents of the .debug_addr section.
573
574           "c"
575           "=cu_index"
576               Displays the contents of the .debug_cu_index and/or
577               .debug_tu_index sections.
578
579           "f"
580           "=frames"
581               Display the raw contents of a .debug_frame section.
582
583           "F"
584           "=frames-interp"
585               Display the interpreted contents of a .debug_frame section.
586
587           "g"
588           "=gdb_index"
589               Displays the contents of the .gdb_index and/or .debug_names
590               sections.
591
592           "i"
593           "=info"
594               Displays the contents of the .debug_info section.  Note: the
595               output from this option can also be restricted by the use of
596               the --dwarf-depth and --dwarf-start options.
597
598           "k"
599           "=links"
600               Displays the contents of the .gnu_debuglink, .gnu_debugaltlink
601               and .debug_sup sections, if any of them are present.  Also
602               displays any links to separate dwarf object files (dwo), if
603               they are specified by the DW_AT_GNU_dwo_name or DW_AT_dwo_name
604               attributes in the .debug_info section.
605
606           "K"
607           "=follow-links"
608               Display the contents of any selected debug sections that are
609               found in linked, separate debug info file(s).  This can result
610               in multiple versions of the same debug section being displayed
611               if it exists in more than one file.
612
613               In addition, when displaying DWARF attributes, if a form is
614               found that references the separate debug info file, then the
615               referenced contents will also be displayed.
616
617               Note - in some distributions this option is enabled by default.
618               It can be disabled via the N debug option.  The default can be
619               chosen when configuring the binutils via the
620               --enable-follow-debug-links=yes or
621               --enable-follow-debug-links=no options.  If these are not used
622               then the default is to enable the following of debug links.
623
624               Note - if support for the debuginfod protocol was enabled when
625               the binutils were built then this option will also include an
626               attempt to contact any debuginfod servers mentioned in the
627               DEBUGINFOD_URLS environment variable.  This could take some
628               time to resolve.  This behaviour can be disabled via the
629               =do-not-use-debuginfod debug option.
630
631           "N"
632           "=no-follow-links"
633               Disables the following of links to separate debug info files.
634
635           "D"
636           "=use-debuginfod"
637               Enables contacting debuginfod servers if there is a need to
638               follow debug links.  This is the default behaviour.
639
640           "E"
641           "=do-not-use-debuginfod"
642               Disables contacting debuginfod servers when there is a need to
643               follow debug links.
644
645           "l"
646           "=rawline"
647               Displays the contents of the .debug_line section in a raw
648               format.
649
650           "L"
651           "=decodedline"
652               Displays the interpreted contents of the .debug_line section.
653
654           "m"
655           "=macro"
656               Displays the contents of the .debug_macro and/or .debug_macinfo
657               sections.
658
659           "o"
660           "=loc"
661               Displays the contents of the .debug_loc and/or .debug_loclists
662               sections.
663
664           "O"
665           "=str-offsets"
666               Displays the contents of the .debug_str_offsets section.
667
668           "p"
669           "=pubnames"
670               Displays the contents of the .debug_pubnames and/or
671               .debug_gnu_pubnames sections.
672
673           "r"
674           "=aranges"
675               Displays the contents of the .debug_aranges section.
676
677           "R"
678           "=Ranges"
679               Displays the contents of the .debug_ranges and/or
680               .debug_rnglists sections.
681
682           "s"
683           "=str"
684               Displays the contents of the .debug_str, .debug_line_str and/or
685               .debug_str_offsets sections.
686
687           "t"
688           "=pubtype"
689               Displays the contents of the .debug_pubtypes and/or
690               .debug_gnu_pubtypes sections.
691
692           "T"
693           "=trace_aranges"
694               Displays the contents of the .trace_aranges section.
695
696           "u"
697           "=trace_abbrev"
698               Displays the contents of the .trace_abbrev section.
699
700           "U"
701           "=trace_info"
702               Displays the contents of the .trace_info section.
703
704           Note: displaying the contents of .debug_static_funcs,
705           .debug_static_vars and debug_weaknames sections is not currently
706           supported.
707
708       --dwarf-depth=n
709           Limit the dump of the ".debug_info" section to n children.  This is
710           only useful with --debug-dump=info.  The default is to print all
711           DIEs; the special value 0 for n will also have this effect.
712
713           With a non-zero value for n, DIEs at or deeper than n levels will
714           not be printed.  The range for n is zero-based.
715
716       --dwarf-start=n
717           Print only DIEs beginning with the DIE numbered n.  This is only
718           useful with --debug-dump=info.
719
720           If specified, this option will suppress printing of any header
721           information and all DIEs before the DIE numbered n.  Only siblings
722           and children of the specified DIE will be printed.
723
724           This can be used in conjunction with --dwarf-depth.
725
726       --dwarf-check
727           Enable additional checks for consistency of Dwarf information.
728
729       --ctf[=section]
730           Display the contents of the specified CTF section.  CTF sections
731           themselves contain many subsections, all of which are displayed in
732           order.
733
734           By default, display the name of the section named .ctf, which is
735           the name emitted by ld.
736
737       --ctf-parent=member
738           If the CTF section contains ambiguously-defined types, it will
739           consist of an archive of many CTF dictionaries, all inheriting from
740           one dictionary containing unambiguous types.  This member is by
741           default named .ctf, like the section containing it, but it is
742           possible to change this name using the
743           "ctf_link_set_memb_name_changer" function at link time.  When
744           looking at CTF archives that have been created by a linker that
745           uses the name changer to rename the parent archive member,
746           --ctf-parent can be used to specify the name used for the parent.
747
748       -G
749       --stabs
750           Display the full contents of any sections requested.  Display the
751           contents of the .stab and .stab.index and .stab.excl sections from
752           an ELF file.  This is only useful on systems (such as Solaris 2.0)
753           in which ".stab" debugging symbol-table entries are carried in an
754           ELF section.  In most other file formats, debugging symbol-table
755           entries are interleaved with linkage symbols, and are visible in
756           the --syms output.
757
758       --start-address=address
759           Start displaying data at the specified address.  This affects the
760           output of the -d, -r and -s options.
761
762       --stop-address=address
763           Stop displaying data at the specified address.  This affects the
764           output of the -d, -r and -s options.
765
766       -t
767       --syms
768           Print the symbol table entries of the file.  This is similar to the
769           information provided by the nm program, although the display format
770           is different.  The format of the output depends upon the format of
771           the file being dumped, but there are two main types.  One looks
772           like this:
773
774                   [  4](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x00000000 .bss
775                   [  6](sec  1)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 fred
776
777           where the number inside the square brackets is the number of the
778           entry in the symbol table, the sec number is the section number,
779           the fl value are the symbol's flag bits, the ty number is the
780           symbol's type, the scl number is the symbol's storage class and the
781           nx value is the number of auxiliary entries associated with the
782           symbol.  The last two fields are the symbol's value and its name.
783
784           The other common output format, usually seen with ELF based files,
785           looks like this:
786
787                   00000000 l    d  .bss   00000000 .bss
788                   00000000 g       .text  00000000 fred
789
790           Here the first number is the symbol's value (sometimes referred to
791           as its address).  The next field is actually a set of characters
792           and spaces indicating the flag bits that are set on the symbol.
793           These characters are described below.  Next is the section with
794           which the symbol is associated or *ABS* if the section is absolute
795           (ie not connected with any section), or *UND* if the section is
796           referenced in the file being dumped, but not defined there.
797
798           After the section name comes another field, a number, which for
799           common symbols is the alignment and for other symbol is the size.
800           Finally the symbol's name is displayed.
801
802           The flag characters are divided into 7 groups as follows:
803
804           "l"
805           "g"
806           "u"
807           "!" The symbol is a local (l), global (g), unique global (u),
808               neither global nor local (a space) or both global and local
809               (!).  A symbol can be neither local or global for a variety of
810               reasons, e.g., because it is used for debugging, but it is
811               probably an indication of a bug if it is ever both local and
812               global.  Unique global symbols are a GNU extension to the
813               standard set of ELF symbol bindings.  For such a symbol the
814               dynamic linker will make sure that in the entire process there
815               is just one symbol with this name and type in use.
816
817           "w" The symbol is weak (w) or strong (a space).
818
819           "C" The symbol denotes a constructor (C) or an ordinary symbol (a
820               space).
821
822           "W" The symbol is a warning (W) or a normal symbol (a space).  A
823               warning symbol's name is a message to be displayed if the
824               symbol following the warning symbol is ever referenced.
825
826           "I"
827           "i" The symbol is an indirect reference to another symbol (I), a
828               function to be evaluated during reloc processing (i) or a
829               normal symbol (a space).
830
831           "d"
832           "D" The symbol is a debugging symbol (d) or a dynamic symbol (D) or
833               a normal symbol (a space).
834
835           "F"
836           "f"
837           "O" The symbol is the name of a function (F) or a file (f) or an
838               object (O) or just a normal symbol (a space).
839
840       -T
841       --dynamic-syms
842           Print the dynamic symbol table entries of the file.  This is only
843           meaningful for dynamic objects, such as certain types of shared
844           libraries.  This is similar to the information provided by the nm
845           program when given the -D (--dynamic) option.
846
847           The output format is similar to that produced by the --syms option,
848           except that an extra field is inserted before the symbol's name,
849           giving the version information associated with the symbol.  If the
850           version is the default version to be used when resolving
851           unversioned references to the symbol then it's displayed as is,
852           otherwise it's put into parentheses.
853
854       --special-syms
855           When displaying symbols include those which the target considers to
856           be special in some way and which would not normally be of interest
857           to the user.
858
859       -U [d|i|l|e|x|h]
860       --unicode=[default|invalid|locale|escape|hex|highlight]
861           Controls the display of UTF-8 encoded multibyte characters in
862           strings.  The default (--unicode=default) is to give them no
863           special treatment.  The --unicode=locale option displays the
864           sequence in the current locale, which may or may not support them.
865           The options --unicode=hex and --unicode=invalid display them as hex
866           byte sequences enclosed by either angle brackets or curly braces.
867
868           The --unicode=escape option displays them as escape sequences
869           (\uxxxx) and the --unicode=highlight option displays them as escape
870           sequences highlighted in red (if supported by the output device).
871           The colouring is intended to draw attention to the presence of
872           unicode sequences where they might not be expected.
873
874       -V
875       --version
876           Print the version number of objdump and exit.
877
878       -x
879       --all-headers
880           Display all available header information, including the symbol
881           table and relocation entries.  Using -x is equivalent to specifying
882           all of -a -f -h -p -r -t.
883
884       -w
885       --wide
886           Format some lines for output devices that have more than 80
887           columns.  Also do not truncate symbol names when they are
888           displayed.
889
890       -z
891       --disassemble-zeroes
892           Normally the disassembly output will skip blocks of zeroes.  This
893           option directs the disassembler to disassemble those blocks, just
894           like any other data.
895
896       @file
897           Read command-line options from file.  The options read are inserted
898           in place of the original @file option.  If file does not exist, or
899           cannot be read, then the option will be treated literally, and not
900           removed.
901
902           Options in file are separated by whitespace.  A whitespace
903           character may be included in an option by surrounding the entire
904           option in either single or double quotes.  Any character (including
905           a backslash) may be included by prefixing the character to be
906           included with a backslash.  The file may itself contain additional
907           @file options; any such options will be processed recursively.
908

SEE ALSO

910       nm(1), readelf(1), and the Info entries for binutils.
911
913       Copyright (c) 1991-2022 Free Software Foundation, Inc.
914
915       Permission is granted to copy, distribute and/or modify this document
916       under the terms of the GNU Free Documentation License, Version 1.3 or
917       any later version published by the Free Software Foundation; with no
918       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
919       Texts.  A copy of the license is included in the section entitled "GNU
920       Free Documentation License".
921
922
923
924binutils-2.39                     2022-08-31                        OBJDUMP(1)
Impressum