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[lLiaprmfFsoORtUuTgAckK]|
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,=follow-links]]
36               [--ctf=section]
37               [-G|--stabs]
38               [-t|--syms]
39               [-T|--dynamic-syms]
40               [-x|--all-headers]
41               [-w|--wide]
42               [--start-address=address]
43               [--stop-address=address]
44               [--no-addresses]
45               [--prefix-addresses]
46               [--[no-]show-raw-insn]
47               [--adjust-vma=offset]
48               [--dwarf-depth=n]
49               [--dwarf-start=n]
50               [--ctf-parent=section]
51               [--no-recurse-limit|--recurse-limit]
52               [--special-syms]
53               [--prefix=prefix]
54               [--prefix-strip=level]
55               [--insn-width=width]
56               [--visualize-jumps[=color|=extended-color|=off]
57               [-V|--version]
58               [-H|--help]
59               objfile...
60

DESCRIPTION

62       objdump displays information about one or more object files.  The
63       options control what particular information to display.  This
64       information is mostly useful to programmers who are working on the
65       compilation tools, as opposed to programmers who just want their
66       program to compile and work.
67
68       objfile... are the object files to be examined.  When you specify
69       archives, objdump shows information on each of the member object files.
70

OPTIONS

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

SEE ALSO

836       nm(1), readelf(1), and the Info entries for binutils.
837
839       Copyright (c) 1991-2020 Free Software Foundation, Inc.
840
841       Permission is granted to copy, distribute and/or modify this document
842       under the terms of the GNU Free Documentation License, Version 1.3 or
843       any later version published by the Free Software Foundation; with no
844       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
845       Texts.  A copy of the license is included in the section entitled "GNU
846       Free Documentation License".
847
848
849
850binutils-2.35                     2020-07-24                        OBJDUMP(1)
Impressum