1 .\" Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000
2 .\" Free Software Foundation, Inc.
3 .\" See section COPYING for conditions for redistribution
4 .TH objdump 1 "5 November 1991" "Free Software Foundation" "GNU Development Tools"
12 objdump \- display information from object files.
19 .RB "[\|" \-a | \-\-archive\-headers "\|]"
22 .RB " | " "\-\-target="\c
25 .RB "[\|" \-C | \-\-demangle "\|]"
26 .RB "[\|" \-\-debugging "\|]"
27 .RB "[\|" \-d | \-\-disassemble "\|]"
28 .RB "[\|" \-D | \-\-disassemble-all "\|]"
29 .RB "[\|" \-\-disassemble\-zeroes "\|]"
30 .RB "[\|" \-EB | \-EL | \-\-endian=\c
33 .RB "[\|" \-f | \-\-file\-headers "\|]"
34 .RB "[\|" \-h | \-\-section\-headers
35 .RB "| " \-\-headers "\|]"
36 .RB "[\|" \-i | \-\-info "\|]"
39 .RB " | " "\-\-section="\c
42 .RB "[\|" \-l | \-\-line\-numbers "\|]"
45 .RB " | " "\-\-architecture="\c
48 .RB "[\|" \-p | \-\-private\-headers "\|]"
49 .RB "[\|" \-\-prefix\-addresses "\|]"
50 .RB "[\|" \-r | \-\-reloc "\|]"
51 .RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
52 .RB "[\|" \-s | \-\-full\-contents "\|]"
53 .RB "[\|" \-S | \-\-source "\|]"
54 .RB "[\|" \-\-[no\-]show\-raw\-insn "\|]"
55 .RB "[\|" \-\-stabs "\|]"
56 .RB "[\|" \-t | \-\-syms "\|]"
57 .RB "[\|" \-T | \-\-dynamic\-syms "\|]"
58 .RB "[\|" \-x | \-\-all\-headers "\|]"
59 .RB "[\|" "\-\-start\-address="\c
62 .RB "[\|" "\-\-stop\-address="\c
65 .RB "[\|" "\-\-adjust\-vma="\c
68 .RB "[\|" \-\-version "\|]"
69 .RB "[\|" \-\-help "\|]"
77 \& displays information about one or more object files.
78 The options control what particular information to display. This
79 information is mostly useful to programmers who are working on the
80 compilation tools, as opposed to programmers who just want their
81 program to compile and work.
84 are the object files to be examined. When you specify archives,
87 \& shows information on each of the member object files.
90 Where long and short forms of an option are shown together, they are
91 equivalent. At least one option besides
93 (\fB\-\-line\-numbers\fP) must be given.
98 .B \-\-archive\-headers
101 \& are archives, display the archive
102 header information (in a format similar to `\|\c
105 information you could list with `\|\c
110 the object file format of each archive member.
113 .BI "\-\-adjust\-vma=" "offset"
114 When dumping information, first add
116 to all the section addresses. This is useful if the section addresses
117 do not correspond to the symbol table, which can happen when putting
118 sections at particular addresses when using a format which can not
119 represent section addresses, such as a.out.
122 .BI "\-b " "bfdname"\c
124 .BI "\-\-target=" "bfdname"
125 Specify the object-code format for the object files to be
128 \&. This may not be necessary; \c
131 automatically recognize many formats. For example,
134 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
137 display summary information from the section headers (`\|\c
142 \|', which is explicitly identified (`\|\c
145 file in the format produced by Oasys compilers. You can list the
146 formats available with the `\|\c
154 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
155 Besides removing any initial underscore prepended by the system, this
156 makes C++ function names readable.
160 Display debugging information. This attempts to parse debugging
161 information stored in the file and print it out using a C like syntax.
162 Only certain types of debugging information have been implemented.
168 Display the assembler mnemonics for the machine
172 This option only disassembles those sections which are
173 expected to contain instructions.
178 .B \-\-disassemble-all
179 Like \fB\-d\fP, but disassemble the contents of all sections, not just
180 those expected to contain instructions.
183 .B \-\-prefix\-addresses
184 When disassembling, print the complete address on each line. This is
185 the older disassembly format.
188 .B \-\-disassemble\-zeroes
189 Normally the disassembly output will skip blocks of zeroes. This
190 option directs the disassembler to disassemble those blocks, just like
198 .BI "\-\-endian=" "{big|little}"
199 Specify the endianness of the object files. This only affects
200 disassembly. This can be useful when disassembling a file format which
201 does not describe endianness information, such as S-records.
207 Display summary information from the overall header of
215 .B \-\-section\-headers
218 Display summary information from the section headers of the
223 Print a summary of the options to
231 Display a list showing all architectures and object formats available
232 for specification with \c
241 .BI "\-\-section=" "name"
242 Display information only for section \c
250 Label the display (using debugging information) with the filename
251 and source line numbers corresponding to the object code shown.
252 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
255 .BI "\-m " "machine"\c
257 .BI "\-\-architecture=" "machine"
258 Specify the architecture to use when disassembling object files. This
259 can be useful when disassembling object files which do not describe
260 architecture information, such as S-records. You can list the available
261 architectures with the \fB\-i\fP option.
266 .B \-\-private\-headers
267 Print information that is specific to the object file format. The
268 exact information printed depends upon the object file format. For
269 some object file formats, no additional information is printed.
275 Print the relocation entries of the file. If used with \fB\-d\fP or
276 \fB\-D\fP, the relocations are printed interspersed with the
282 .B \-\-dynamic\-reloc
283 Print the dynamic relocation entries of the file. This is only
284 meaningful for dynamic objects, such as certain types of shared
290 .B \-\-full\-contents
291 Display the full contents of any sections requested.
297 Display source code intermixed with disassembly, if possible. Implies
301 .B \-\-show\-raw\-insn
302 When disassembling instructions, print the instruction in hex as well as
303 in symbolic form. This is the default except when
304 .B \-\-prefix\-addresses
308 .B \-\-no\-show\-raw\-insn
309 When disassembling instructions, do not print the instruction bytes.
310 This is the default when
311 .B \-\-prefix\-addresses
316 Display the contents of the .stab, .stab.index, and .stab.excl
317 sections from an ELF file. This is only useful on systems (such as
318 Solaris 2.0) in which .stab debugging symbol-table entries are carried
319 in an ELF section. In most other file formats, debugging symbol-table
320 entries are interleaved with linkage symbols, and are visible in the
325 .BI "\-\-start\-address=" "address"
326 Start displaying data at the specified address. This affects the output
336 .BI "\-\-stop\-address=" "address"
337 Stop displaying data at the specified address. This affects the output
350 Symbol Table. Print the symbol table entries of the file.
351 This is similar to the information provided by the `\|\c
359 Dynamic Symbol Table. Print the dynamic symbol table entries of the
360 file. This is only meaningful for dynamic objects, such as certain
361 types of shared libraries. This is similar to the information
362 provided by the `\|\c
364 \|' program when given the
370 Print the version number of
378 Display all available header information, including the symbol table and
379 relocation entries. Using `\|\c
381 \|' is equivalent to specifying all of
383 .B \-a \-f \-h \-r \-t\c
387 .RB "`\|" binutils "\|'"
393 The GNU Binary Utilities\c
394 \&, Roland H. Pesch (October 1991);
398 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
401 This document is distributed under the terms of the GNU Free
402 Documentation License, version 1.1. That license is described in the
403 sources for this manual page, but it is not displayed here in order to
404 make this manual more consise. Copies of this license can also be
405 obtained from: http://www.gnu.org/copyleft/.
407 \" .SH GNU Free Documentation License
408 \" Version 1.1, March 2000
410 \" Copyright (C) 2000 Free Software Foundation, Inc.
411 \" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
413 \" Everyone is permitted to copy and distribute verbatim
414 \" copies of this license document, but changing it is
419 \" The purpose of this License is to make a manual, textbook, or other
420 \" written document "free" in the sense of freedom: to assure everyone
421 \" the effective freedom to copy and redistribute it, with or without
422 \" modifying it, either commercially or noncommercially. Secondarily,
423 \" this License preserves for the author and publisher a way to get
424 \" credit for their work, while not being considered responsible for
425 \" modifications made by others.
427 \" This License is a kind of "copyleft", which means that derivative
428 \" works of the document must themselves be free in the same sense. It
429 \" complements the GNU General Public License, which is a copyleft
430 \" license designed for free software.
432 \" We have designed this License in order to use it for manuals for free
433 \" software, because free software needs free documentation: a free
434 \" program should come with manuals providing the same freedoms that the
435 \" software does. But this License is not limited to software manuals;
436 \" it can be used for any textual work, regardless of subject matter or
437 \" whether it is published as a printed book. We recommend this License
438 \" principally for works whose purpose is instruction or reference.
440 \" 1. APPLICABILITY AND DEFINITIONS
442 \" This License applies to any manual or other work that contains a
443 \" notice placed by the copyright holder saying it can be distributed
444 \" under the terms of this License. The "Document", below, refers to any
445 \" such manual or work. Any member of the public is a licensee, and is
446 \" addressed as "you".
448 \" A "Modified Version" of the Document means any work containing the
449 \" Document or a portion of it, either copied verbatim, or with
450 \" modifications and/or translated into another language.
452 \" A "Secondary Section" is a named appendix or a front-matter section of
453 \" the Document that deals exclusively with the relationship of the
454 \" publishers or authors of the Document to the Document's overall subject
455 \" (or to related matters) and contains nothing that could fall directly
456 \" within that overall subject. (For example, if the Document is in part a
457 \" textbook of mathematics, a Secondary Section may not explain any
458 \" mathematics.) The relationship could be a matter of historical
459 \" connection with the subject or with related matters, or of legal,
460 \" commercial, philosophical, ethical or political position regarding
463 \" The "Invariant Sections" are certain Secondary Sections whose titles
464 \" are designated, as being those of Invariant Sections, in the notice
465 \" that says that the Document is released under this License.
467 \" The "Cover Texts" are certain short passages of text that are listed,
468 \" as Front-Cover Texts or Back-Cover Texts, in the notice that says that
469 \" the Document is released under this License.
471 \" A "Transparent" copy of the Document means a machine-readable copy,
472 \" represented in a format whose specification is available to the
473 \" general public, whose contents can be viewed and edited directly and
474 \" straightforwardly with generic text editors or (for images composed of
475 \" pixels) generic paint programs or (for drawings) some widely available
476 \" drawing editor, and that is suitable for input to text formatters or
477 \" for automatic translation to a variety of formats suitable for input
478 \" to text formatters. A copy made in an otherwise Transparent file
479 \" format whose markup has been designed to thwart or discourage
480 \" subsequent modification by readers is not Transparent. A copy that is
481 \" not "Transparent" is called "Opaque".
483 \" Examples of suitable formats for Transparent copies include plain
484 \" ASCII without markup, Texinfo input format, LaTeX input format, SGML
485 \" or XML using a publicly available DTD, and standard-conforming simple
486 \" HTML designed for human modification. Opaque formats include
487 \" PostScript, PDF, proprietary formats that can be read and edited only
488 \" by proprietary word processors, SGML or XML for which the DTD and/or
489 \" processing tools are not generally available, and the
490 \" machine-generated HTML produced by some word processors for output
493 \" The "Title Page" means, for a printed book, the title page itself,
494 \" plus such following pages as are needed to hold, legibly, the material
495 \" this License requires to appear in the title page. For works in
496 \" formats which do not have any title page as such, "Title Page" means
497 \" the text near the most prominent appearance of the work's title,
498 \" preceding the beginning of the body of the text.
500 \" 2. VERBATIM COPYING
502 \" You may copy and distribute the Document in any medium, either
503 \" commercially or noncommercially, provided that this License, the
504 \" copyright notices, and the license notice saying this License applies
505 \" to the Document are reproduced in all copies, and that you add no other
506 \" conditions whatsoever to those of this License. You may not use
507 \" technical measures to obstruct or control the reading or further
508 \" copying of the copies you make or distribute. However, you may accept
509 \" compensation in exchange for copies. If you distribute a large enough
510 \" number of copies you must also follow the conditions in section 3.
512 \" You may also lend copies, under the same conditions stated above, and
513 \" you may publicly display copies.
515 \" 3. COPYING IN QUANTITY
517 \" If you publish printed copies of the Document numbering more than 100,
518 \" and the Document's license notice requires Cover Texts, you must enclose
519 \" the copies in covers that carry, clearly and legibly, all these Cover
520 \" Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
521 \" the back cover. Both covers must also clearly and legibly identify
522 \" you as the publisher of these copies. The front cover must present
523 \" the full title with all words of the title equally prominent and
524 \" visible. You may add other material on the covers in addition.
525 \" Copying with changes limited to the covers, as long as they preserve
526 \" the title of the Document and satisfy these conditions, can be treated
527 \" as verbatim copying in other respects.
529 \" If the required texts for either cover are too voluminous to fit
530 \" legibly, you should put the first ones listed (as many as fit
531 \" reasonably) on the actual cover, and continue the rest onto adjacent
534 \" If you publish or distribute Opaque copies of the Document numbering
535 \" more than 100, you must either include a machine-readable Transparent
536 \" copy along with each Opaque copy, or state in or with each Opaque copy
537 \" a publicly-accessible computer-network location containing a complete
538 \" Transparent copy of the Document, free of added material, which the
539 \" general network-using public has access to download anonymously at no
540 \" charge using public-standard network protocols. If you use the latter
541 \" option, you must take reasonably prudent steps, when you begin
542 \" distribution of Opaque copies in quantity, to ensure that this
543 \" Transparent copy will remain thus accessible at the stated location
544 \" until at least one year after the last time you distribute an Opaque
545 \" copy (directly or through your agents or retailers) of that edition to
548 \" It is requested, but not required, that you contact the authors of the
549 \" Document well before redistributing any large number of copies, to give
550 \" them a chance to provide you with an updated version of the Document.
554 \" You may copy and distribute a Modified Version of the Document under
555 \" the conditions of sections 2 and 3 above, provided that you release
556 \" the Modified Version under precisely this License, with the Modified
557 \" Version filling the role of the Document, thus licensing distribution
558 \" and modification of the Modified Version to whoever possesses a copy
559 \" of it. In addition, you must do these things in the Modified Version:
561 \" A. Use in the Title Page (and on the covers, if any) a title distinct
562 \" from that of the Document, and from those of previous versions
563 \" (which should, if there were any, be listed in the History section
564 \" of the Document). You may use the same title as a previous version
565 \" if the original publisher of that version gives permission.
567 \" B. List on the Title Page, as authors, one or more persons or entities
568 \" responsible for authorship of the modifications in the Modified
569 \" Version, together with at least five of the principal authors of the
570 \" Document (all of its principal authors, if it has less than five).
572 \" C. State on the Title page the name of the publisher of the
573 \" Modified Version, as the publisher.
575 \" D. Preserve all the copyright notices of the Document.
577 \" E. Add an appropriate copyright notice for your modifications
578 \" adjacent to the other copyright notices.
580 \" F. Include, immediately after the copyright notices, a license notice
581 \" giving the public permission to use the Modified Version under the
582 \" terms of this License, in the form shown in the Addendum below.
583 \" Preserve in that license notice the full lists of Invariant Sections
584 \" and required Cover Texts given in the Document's license notice.
586 \" H. Include an unaltered copy of this License.
588 \" I. Preserve the section entitled "History", and its title, and add to
589 \" it an item stating at least the title, year, new authors, and
590 \" publisher of the Modified Version as given on the Title Page. If
591 \" there is no section entitled "History" in the Document, create one
592 \" stating the title, year, authors, and publisher of the Document as
593 \" given on its Title Page, then add an item describing the Modified
594 \" Version as stated in the previous sentence.
596 \" J. Preserve the network location, if any, given in the Document for
597 \" public access to a Transparent copy of the Document, and likewise
598 \" the network locations given in the Document for previous versions
599 \" it was based on. These may be placed in the "History" section.
600 \" You may omit a network location for a work that was published at
601 \" least four years before the Document itself, or if the original
602 \" publisher of the version it refers to gives permission.
604 \" K. In any section entitled "Acknowledgements" or "Dedications",
605 \" preserve the section's title, and preserve in the section all the
606 \" substance and tone of each of the contributor acknowledgements
607 \" and/or dedications given therein.
609 \" L. Preserve all the Invariant Sections of the Document,
610 \" unaltered in their text and in their titles. Section numbers
611 \" or the equivalent are not considered part of the section titles.
613 \" M. Delete any section entitled "Endorsements". Such a section
614 \" may not be included in the Modified Version.
616 \" N. Do not retitle any existing section as "Endorsements"
617 \" or to conflict in title with any Invariant Section.
619 \" If the Modified Version includes new front-matter sections or
620 \" appendices that qualify as Secondary Sections and contain no material
621 \" copied from the Document, you may at your option designate some or all
622 \" of these sections as invariant. To do this, add their titles to the
623 \" list of Invariant Sections in the Modified Version's license notice.
624 \" These titles must be distinct from any other section titles.
626 \" You may add a section entitled "Endorsements", provided it contains
627 \" nothing but endorsements of your Modified Version by various
628 \" parties--for example, statements of peer review or that the text has
629 \" been approved by an organization as the authoritative definition of a
632 \" You may add a passage of up to five words as a Front-Cover Text, and a
633 \" passage of up to 25 words as a Back-Cover Text, to the end of the list
634 \" of Cover Texts in the Modified Version. Only one passage of
635 \" Front-Cover Text and one of Back-Cover Text may be added by (or
636 \" through arrangements made by) any one entity. If the Document already
637 \" includes a cover text for the same cover, previously added by you or
638 \" by arrangement made by the same entity you are acting on behalf of,
639 \" you may not add another; but you may replace the old one, on explicit
640 \" permission from the previous publisher that added the old one.
642 \" The author(s) and publisher(s) of the Document do not by this License
643 \" give permission to use their names for publicity for or to assert or
644 \" imply endorsement of any Modified Version.
647 \" 5. COMBINING DOCUMENTS
649 \" You may combine the Document with other documents released under this
650 \" License, under the terms defined in section 4 above for modified
651 \" versions, provided that you include in the combination all of the
652 \" Invariant Sections of all of the original documents, unmodified, and
653 \" list them all as Invariant Sections of your combined work in its
656 \" The combined work need only contain one copy of this License, and
657 \" multiple identical Invariant Sections may be replaced with a single
658 \" copy. If there are multiple Invariant Sections with the same name but
659 \" different contents, make the title of each such section unique by
660 \" adding at the end of it, in parentheses, the name of the original
661 \" author or publisher of that section if known, or else a unique number.
662 \" Make the same adjustment to the section titles in the list of
663 \" Invariant Sections in the license notice of the combined work.
665 \" In the combination, you must combine any sections entitled "History"
666 \" in the various original documents, forming one section entitled
667 \" "History"; likewise combine any sections entitled "Acknowledgements",
668 \" and any sections entitled "Dedications". You must delete all sections
669 \" entitled "Endorsements."
672 \" 6. COLLECTIONS OF DOCUMENTS
674 \" You may make a collection consisting of the Document and other documents
675 \" released under this License, and replace the individual copies of this
676 \" License in the various documents with a single copy that is included in
677 \" the collection, provided that you follow the rules of this License for
678 \" verbatim copying of each of the documents in all other respects.
680 \" You may extract a single document from such a collection, and distribute
681 \" it individually under this License, provided you insert a copy of this
682 \" License into the extracted document, and follow this License in all
683 \" other respects regarding verbatim copying of that document.
686 \" 7. AGGREGATION WITH INDEPENDENT WORKS
688 \" A compilation of the Document or its derivatives with other separate
689 \" and independent documents or works, in or on a volume of a storage or
690 \" distribution medium, does not as a whole count as a Modified Version
691 \" of the Document, provided no compilation copyright is claimed for the
692 \" compilation. Such a compilation is called an "aggregate", and this
693 \" License does not apply to the other self-contained works thus compiled
694 \" with the Document, on account of their being thus compiled, if they
695 \" are not themselves derivative works of the Document.
697 \" If the Cover Text requirement of section 3 is applicable to these
698 \" copies of the Document, then if the Document is less than one quarter
699 \" of the entire aggregate, the Document's Cover Texts may be placed on
700 \" covers that surround only the Document within the aggregate.
701 \" Otherwise they must appear on covers around the whole aggregate.
706 \" Translation is considered a kind of modification, so you may
707 \" distribute translations of the Document under the terms of section 4.
708 \" Replacing Invariant Sections with translations requires special
709 \" permission from their copyright holders, but you may include
710 \" translations of some or all Invariant Sections in addition to the
711 \" original versions of these Invariant Sections. You may include a
712 \" translation of this License provided that you also include the
713 \" original English version of this License. In case of a disagreement
714 \" between the translation and the original English version of this
715 \" License, the original English version will prevail.
720 \" You may not copy, modify, sublicense, or distribute the Document except
721 \" as expressly provided for under this License. Any other attempt to
722 \" copy, modify, sublicense or distribute the Document is void, and will
723 \" automatically terminate your rights under this License. However,
724 \" parties who have received copies, or rights, from you under this
725 \" License will not have their licenses terminated so long as such
726 \" parties remain in full compliance.
729 \" 10. FUTURE REVISIONS OF THIS LICENSE
731 \" The Free Software Foundation may publish new, revised versions
732 \" of the GNU Free Documentation License from time to time. Such new
733 \" versions will be similar in spirit to the present version, but may
734 \" differ in detail to address new problems or concerns. See
735 \" http://www.gnu.org/copyleft/.
737 \" Each version of the License is given a distinguishing version number.
738 \" If the Document specifies that a particular numbered version of this
739 \" License "or any later version" applies to it, you have the option of
740 \" following the terms and conditions either of that specified version or
741 \" of any later version that has been published (not as a draft) by the
742 \" Free Software Foundation. If the Document does not specify a version
743 \" number of this License, you may choose any version ever published (not
744 \" as a draft) by the Free Software Foundation.
747 \" ADDENDUM: How to use this License for your documents
749 \" To use this License in a document you have written, include a copy of
750 \" the License in the document and put the following copyright and
751 \" license notices just after the title page:
753 \" Copyright (c) YEAR YOUR NAME.
754 \" Permission is granted to copy, distribute and/or
755 \" modify this document under the terms of the GNU
756 \" Free Documentation License, Version 1.1 or any later
757 \" version published by the Free Software Foundation;
758 \" with the Invariant Sections being LIST THEIR TITLES,
759 \" with the Front-Cover Texts being LIST, and with the
760 \" Back-Cover Texts being LIST. A copy of the license
761 \" is included in the section entitled "GNU Free
762 \" Documentation License".
764 \" If you have no Invariant Sections, write "with no Invariant Sections"
765 \" instead of saying which ones are invariant. If you have no
766 \" Front-Cover Texts, write "no Front-Cover Texts" instead of
767 \" "Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
769 \" If your document contains nontrivial examples of program code, we
770 \" recommend releasing these examples in parallel under your choice of
771 \" free software license, such as the GNU General Public License,
772 \" to permit their use in free software.