1 .\" Copyright (c) 1991, 1996, 1997 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 "[\|" \-\-prefix\-addresses "\|]"
48 .RB "[\|" \-r | \-\-reloc "\|]"
49 .RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
50 .RB "[\|" \-s | \-\-full\-contents "\|]"
51 .RB "[\|" \-S | \-\-source "\|]"
52 .RB "[\|" \-\-[no\-]show\-raw\-insn "\|]"
53 .RB "[\|" \-\-stabs "\|]"
54 .RB "[\|" \-t | \-\-syms "\|]"
55 .RB "[\|" \-T | \-\-dynamic\-syms "\|]"
56 .RB "[\|" \-x | \-\-all\-headers "\|]"
57 .RB "[\|" "\-\-start\-address="\c
60 .RB "[\|" "\-\-stop\-address="\c
63 .RB "[\|" "\-\-adjust\-vma="\c
66 .RB "[\|" \-\-version "\|]"
67 .RB "[\|" \-\-help "\|]"
75 \& displays information about one or more object files.
76 The options control what particular information to display. This
77 information is mostly useful to programmers who are working on the
78 compilation tools, as opposed to programmers who just want their
79 program to compile and work.
82 are the object files to be examined. When you specify archives,
85 \& shows information on each of the member object files.
88 Where long and short forms of an option are shown together, they are
89 equivalent. At least one option besides
91 (\fB\-\-line\-numbers\fP) must be given.
96 .B \-\-archive\-headers
99 \& are archives, display the archive
100 header information (in a format similar to `\|\c
103 information you could list with `\|\c
108 the object file format of each archive member.
111 .BI "\-\-adjust\-vma=" "offset"
112 When dumping information, first add
114 to all the section addresses. This is useful if the section addresses
115 do not correspond to the symbol table, which can happen when putting
116 sections at particular addresses when using a format which can not
117 represent section addresses, such as a.out.
120 .BI "\-b " "bfdname"\c
122 .BI "\-\-target=" "bfdname"
123 Specify the object-code format for the object files to be
126 \&. This may not be necessary; \c
129 automatically recognize many formats. For example,
132 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
135 display summary information from the section headers (`\|\c
140 \|', which is explicitly identified (`\|\c
143 file in the format produced by Oasys compilers. You can list the
144 formats available with the `\|\c
152 Decode (\fIdemangle\fP) low-level symbol names into user-level names.
153 Besides removing any initial underscore prepended by the system, this
154 makes C++ function names readable.
158 Display debugging information. This attempts to parse debugging
159 information stored in the file and print it out using a C like syntax.
160 Only certain types of debugging information have been implemented.
166 Display the assembler mnemonics for the machine
170 This option only disassembles those sections which are
171 expected to contain instructions.
176 .B \-\-disassemble-all
177 Like \fB\-d\fP, but disassemble the contents of all sections, not just
178 those expected to contain instructions.
181 .B \-\-prefix\-addresses
182 When disassembling, print the complete address on each line. This is
183 the older disassembly format.
186 .B \-\-disassemble\-zeroes
187 Normally the disassembly output will skip blocks of zeroes. This
188 option directs the disassembler to disassemble those blocks, just like
196 .BI "\-\-endian=" "{big|little}"
197 Specify the endianness of the object files. This only affects
198 disassembly. This can be useful when disassembling a file format which
199 does not describe endianness information, such as S-records.
205 Display summary information from the overall header of
213 .B \-\-section\-headers
216 Display summary information from the section headers of the
221 Print a summary of the options to
229 Display a list showing all architectures and object formats available
230 for specification with \c
239 .BI "\-\-section=" "name"
240 Display information only for section \c
248 Label the display (using debugging information) with the filename
249 and source line numbers corresponding to the object code shown.
250 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
253 .BI "\-m " "machine"\c
255 .BI "\-\-architecture=" "machine"
256 Specify the architecture to use when disassembling object files. This
257 can be useful when disasembling object files which do not describe
258 architecture information, such as S-records. You can list the available
259 architectures with the \fB\-i\fP option.
265 Print the relocation entries of the file. If used with \fB\-d\fP or
266 \fB\-d\fP, the relocations are printed interspersed with the
272 .B \-\-dynamic\-reloc
273 Print the dynamic relocation entries of the file. This is only
274 meaningful for dynamic objects, such as certain types of shared
280 .B \-\-full\-contents
281 Display the full contents of any sections requested.
287 Display source code intermixed with disassembly, if possible. Implies
291 .B \-\-show\-raw\-insn
292 When disassembling instructions, print the instruction in hex as well as
293 in symbolic form. This is the default except when
294 .B \-\-prefix\-addresses
298 .B \-\-no\-show\-raw\-insn
299 When disassembling instructions, do not print the instruction bytes.
300 This is the default when
301 .B \-\-prefix\-addresses
306 Display the contents of the .stab, .stab.index, and .stab.excl
307 sections from an ELF file. This is only useful on systems (such as
308 Solaris 2.0) in which .stab debugging symbol-table entries are carried
309 in an ELF section. In most other file formats, debugging symbol-table
310 entries are interleaved with linkage symbols, and are visible in the
314 .BI "\-\-start\-address=" "address"
315 Start displaying data at the specified address. This affects the output
325 .BI "\-\-stop\-address=" "address"
326 Stop displaying data at the specified address. This affects the output
339 Symbol Table. Print the symbol table entries of the file.
340 This is similar to the information provided by the `\|\c
348 Dynamic Symbol Table. Print the dynamic symbol table entries of the
349 file. This is only meaningful for dynamic objects, such as certain
350 types of shared libraries. This is similar to the information
351 provided by the `\|\c
353 \|' program when given the
359 Print the version number of
367 Display all available header information, including the symbol table and
368 relocation entries. Using `\|\c
370 \|' is equivalent to specifying all of
372 .B \-a \-f \-h \-r \-t\c
376 .RB "`\|" binutils "\|'"
382 The GNU Binary Utilities\c
383 \&, Roland H. Pesch (October 1991);
387 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
389 Permission is granted to make and distribute verbatim copies of
390 this manual provided the copyright notice and this permission notice
391 are preserved on all copies.
393 Permission is granted to copy and distribute modified versions of this
394 manual under the conditions for verbatim copying, provided that the
395 entire resulting derived work is distributed under the terms of a
396 permission notice identical to this one.
398 Permission is granted to copy and distribute translations of this
399 manual into another language, under the above conditions for modified
400 versions, except that this permission notice may be included in
401 translations approved by the Free Software Foundation instead of in
402 the original English.