1 .\" Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH objdump 1 "5 November 1991" "cygnus support" "GNU Development Tools"
11 objdump \- display information from object files.
18 .RB "[\|" \-a | \-\-archive\-headers "\|]"
21 .RB " | " "\-\-target="\c
24 .RB "[\|" \-C | \-\-demangle "\|]"
25 .RB "[\|" \-\-debugging "\|]"
26 .RB "[\|" \-d | \-\-disassemble "\|]"
27 .RB "[\|" \-D | \-\-disassemble-all "\|]"
28 .RB "[\|" \-\-disassemble\-zeroes "\|]"
29 .RB "[\|" \-EB | \-EL | \-\-endian=\c
32 .RB "[\|" \-f | \-\-file\-headers "\|]"
33 .RB "[\|" \-h | \-\-section\-headers
34 .RB "| " \-\-headers "\|]"
35 .RB "[\|" \-i | \-\-info "\|]"
38 .RB " | " "\-\-section="\c
41 .RB "[\|" \-l | \-\-line\-numbers "\|]"
44 .RB " | " "\-\-architecture="\c
47 .RB "[\|" \-p | \-\-private\-headers "\|]"
48 .RB "[\|" \-\-prefix\-addresses "\|]"
49 .RB "[\|" \-r | \-\-reloc "\|]"
50 .RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
51 .RB "[\|" \-s | \-\-full\-contents "\|]"
52 .RB "[\|" \-S | \-\-source "\|]"
53 .RB "[\|" \-\-[no\-]show\-raw\-insn "\|]"
54 .RB "[\|" \-\-stabs "\|]"
55 .RB "[\|" \-t | \-\-syms "\|]"
56 .RB "[\|" \-T | \-\-dynamic\-syms "\|]"
57 .RB "[\|" \-x | \-\-all\-headers "\|]"
58 .RB "[\|" "\-\-start\-address="\c
61 .RB "[\|" "\-\-stop\-address="\c
64 .RB "[\|" "\-\-adjust\-vma="\c
67 .RB "[\|" \-\-version "\|]"
68 .RB "[\|" \-\-help "\|]"
76 \& displays information about one or more object files.
77 The options control what particular information to display. This
78 information is mostly useful to programmers who are working on the
79 compilation tools, as opposed to programmers who just want their
80 program to compile and work.
83 are the object files to be examined. When you specify archives,
86 \& shows information on each of the member object files.
89 Where long and short forms of an option are shown together, they are
90 equivalent. At least one option besides
92 (\fB\-\-line\-numbers\fP) must be given.
97 .B \-\-archive\-headers
100 \& are archives, display the archive
101 header information (in a format similar to `\|\c
104 information you could list with `\|\c
109 the object file format of each archive member.
112 .BI "\-\-adjust\-vma=" "offset"
113 When dumping information, first add
115 to all the section addresses. This is useful if the section addresses
116 do not correspond to the symbol table, which can happen when putting
117 sections at particular addresses when using a format which can not
118 represent section addresses, such as a.out.
121 .BI "\-b " "bfdname"\c
123 .BI "\-\-target=" "bfdname"
124 Specify the object-code format for the object files to be
127 \&. This may not be necessary; \c
130 automatically recognize many formats. For example,
133 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
136 display summary information from the section headers (`\|\c
141 \|', which is explicitly identified (`\|\c
144 file in the format produced by Oasys compilers. You can list the
145 formats available with the `\|\c
153 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
154 Besides removing any initial underscore prepended by the system, this
155 makes C++ function names readable.
159 Display debugging information. This attempts to parse debugging
160 information stored in the file and print it out using a C like syntax.
161 Only certain types of debugging information have been implemented.
167 Display the assembler mnemonics for the machine
171 This option only disassembles those sections which are
172 expected to contain instructions.
177 .B \-\-disassemble-all
178 Like \fB\-d\fP, but disassemble the contents of all sections, not just
179 those expected to contain instructions.
182 .B \-\-prefix\-addresses
183 When disassembling, print the complete address on each line. This is
184 the older disassembly format.
187 .B \-\-disassemble\-zeroes
188 Normally the disassembly output will skip blocks of zeroes. This
189 option directs the disassembler to disassemble those blocks, just like
197 .BI "\-\-endian=" "{big|little}"
198 Specify the endianness of the object files. This only affects
199 disassembly. This can be useful when disassembling a file format which
200 does not describe endianness information, such as S-records.
206 Display summary information from the overall header of
214 .B \-\-section\-headers
217 Display summary information from the section headers of the
222 Print a summary of the options to
230 Display a list showing all architectures and object formats available
231 for specification with \c
240 .BI "\-\-section=" "name"
241 Display information only for section \c
249 Label the display (using debugging information) with the filename
250 and source line numbers corresponding to the object code shown.
251 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
254 .BI "\-m " "machine"\c
256 .BI "\-\-architecture=" "machine"
257 Specify the architecture to use when disassembling object files. This
258 can be useful when disassembling object files which do not describe
259 architecture information, such as S-records. You can list the available
260 architectures with the \fB\-i\fP option.
265 .B \-\-private\-headers
266 Print information that is specific to the object file format. The
267 exact information printed depends upon the object file format. For
268 some object file formats, no additional information is printed.
274 Print the relocation entries of the file. If used with \fB\-d\fP or
275 \fB\-D\fP, the relocations are printed interspersed with the
281 .B \-\-dynamic\-reloc
282 Print the dynamic relocation entries of the file. This is only
283 meaningful for dynamic objects, such as certain types of shared
289 .B \-\-full\-contents
290 Display the full contents of any sections requested.
296 Display source code intermixed with disassembly, if possible. Implies
300 .B \-\-show\-raw\-insn
301 When disassembling instructions, print the instruction in hex as well as
302 in symbolic form. This is the default except when
303 .B \-\-prefix\-addresses
307 .B \-\-no\-show\-raw\-insn
308 When disassembling instructions, do not print the instruction bytes.
309 This is the default when
310 .B \-\-prefix\-addresses
315 Display the contents of the .stab, .stab.index, and .stab.excl
316 sections from an ELF file. This is only useful on systems (such as
317 Solaris 2.0) in which .stab debugging symbol-table entries are carried
318 in an ELF section. In most other file formats, debugging symbol-table
319 entries are interleaved with linkage symbols, and are visible in the
324 .BI "\-\-start\-address=" "address"
325 Start displaying data at the specified address. This affects the output
335 .BI "\-\-stop\-address=" "address"
336 Stop displaying data at the specified address. This affects the output
349 Symbol Table. Print the symbol table entries of the file.
350 This is similar to the information provided by the `\|\c
358 Dynamic Symbol Table. Print the dynamic symbol table entries of the
359 file. This is only meaningful for dynamic objects, such as certain
360 types of shared libraries. This is similar to the information
361 provided by the `\|\c
363 \|' program when given the
369 Print the version number of
377 Display all available header information, including the symbol table and
378 relocation entries. Using `\|\c
380 \|' is equivalent to specifying all of
382 .B \-a \-f \-h \-r \-t\c
386 .RB "`\|" binutils "\|'"
392 The GNU Binary Utilities\c
393 \&, Roland H. Pesch (October 1991);
397 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
399 Permission is granted to make and distribute verbatim copies of
400 this manual provided the copyright notice and this permission notice
401 are preserved on all copies.
403 Permission is granted to copy and distribute modified versions of this
404 manual under the conditions for verbatim copying, provided that the
405 entire resulting derived work is distributed under the terms of a
406 permission notice identical to this one.
408 Permission is granted to copy and distribute translations of this
409 manual into another language, under the above conditions for modified
410 versions, except that this permission notice may be included in
411 translations approved by the Free Software Foundation instead of in
412 the original English.