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 "[\|" \-\-debugging "\|]"
25 .RB "[\|" \-d | \-\-disassemble "\|]"
26 .RB "[\|" \-D | \-\-disassemble-all "\|]"
27 .RB "[\|" \-\-disassemble\-zeroes "\|]"
28 .RB "[\|" \-EB | \-EL | \-\-endian=\c
31 .RB "[\|" \-f | \-\-file\-headers "\|]"
32 .RB "[\|" \-h | \-\-section\-headers
33 .RB "| " \-\-headers "\|]"
34 .RB "[\|" \-i | \-\-info "\|]"
37 .RB " | " "\-\-section="\c
40 .RB "[\|" \-l | \-\-line\-numbers "\|]"
43 .RB " | " "\-\-architecture="\c
46 .RB "[\|" \-\-prefix\-addresses "\|]"
47 .RB "[\|" \-r | \-\-reloc "\|]"
48 .RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
49 .RB "[\|" \-s | \-\-full\-contents "\|]"
50 .RB "[\|" \-S | \-\-source "\|]"
51 .RB "[\|" \-\-[no\-]show\-raw\-insn "\|]"
52 .RB "[\|" \-\-stabs "\|]"
53 .RB "[\|" \-t | \-\-syms "\|]"
54 .RB "[\|" \-T | \-\-dynamic\-syms "\|]"
55 .RB "[\|" \-x | \-\-all\-headers "\|]"
56 .RB "[\|" "\-\-start\-address="\c
59 .RB "[\|" "\-\-stop\-address="\c
62 .RB "[\|" "\-\-adjust\-vma="\c
65 .RB "[\|" \-\-version "\|]"
66 .RB "[\|" \-\-help "\|]"
74 \& displays information about one or more object files.
75 The options control what particular information to display. This
76 information is mostly useful to programmers who are working on the
77 compilation tools, as opposed to programmers who just want their
78 program to compile and work.
81 are the object files to be examined. When you specify archives,
84 \& shows information on each of the member object files.
87 Where long and short forms of an option are shown together, they are
88 equivalent. At least one option besides
90 (\fB\-\-line\-numbers\fP) must be given.
95 .B \-\-archive\-headers
98 \& are archives, display the archive
99 header information (in a format similar to `\|\c
102 information you could list with `\|\c
107 the object file format of each archive member.
110 .BI "\-\-adjust\-vma=" "offset"
111 When dumping information, first add
113 to all the section addresses. This is useful if the section addresses
114 do not correspond to the symbol table, which can happen when putting
115 sections at particular addresses when using a format which can not
116 represent section addresses, such as a.out.
119 .BI "\-b " "bfdname"\c
121 .BI "\-\-target=" "bfdname"
122 Specify the object-code format for the object files to be
125 \&. This may not be necessary; \c
128 automatically recognize many formats. For example,
131 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
134 display summary information from the section headers (`\|\c
139 \|', which is explicitly identified (`\|\c
142 file in the format produced by Oasys compilers. You can list the
143 formats available with the `\|\c
149 Display debugging information. This attempts to parse debugging
150 information stored in the file and print it out using a C like syntax.
151 Only certain types of debugging information have been implemented.
157 Display the assembler mnemonics for the machine
161 This option only disassembles those sections which are
162 expected to contain instructions.
167 .B \-\-disassemble-all
168 Like \fB\-d\fP, but disassemble the contents of all sections, not just
169 those expected to contain instructions.
172 .B \-\-prefix\-addresses
173 When disassembling, print the complete address on each line. This is
174 the older disassembly format.
177 .B \-\-disassemble\-zeroes
178 Normally the disassembly output will skip blocks of zeroes. This
179 option directs the disassembler to disassemble those blocks, just like
187 .BI "\-\-endian=" "{big|little}"
188 Specify the endianness of the object files. This only affects
189 disassembly. This can be useful when disassembling a file format which
190 does not describe endianness information, such as S-records.
196 Display summary information from the overall header of
204 .B \-\-section\-headers
207 Display summary information from the section headers of the
212 Print a summary of the options to
220 Display a list showing all architectures and object formats available
221 for specification with \c
230 .BI "\-\-section=" "name"
231 Display information only for section \c
239 Label the display (using debugging information) with the filename
240 and source line numbers corresponding to the object code shown.
241 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
244 .BI "\-m " "machine"\c
246 .BI "\-\-architecture=" "machine"
247 Specify the architecture to use when disassembling object files. This
248 can be useful when disasembling object files which do not describe
249 architecture information, such as S-records. You can list the available
250 architectures with the \fB\-i\fP option.
256 Print the relocation entries of the file. If used with \fB\-d\fP or
257 \fB\-d\fP, the relocations are printed interspersed with the
263 .B \-\-dynamic\-reloc
264 Print the dynamic relocation entries of the file. This is only
265 meaningful for dynamic objects, such as certain types of shared
271 .B \-\-full\-contents
272 Display the full contents of any sections requested.
278 Display source code intermixed with disassembly, if possible. Implies
282 .B \-\-show\-raw\-insn
283 When disassembling instructions, print the instruction in hex as well as
284 in symbolic form. This is the default except when
285 .B \-\-prefix\-addresses
289 .B \-\-no\-show\-raw\-insn
290 When disassembling instructions, do not print the instruction bytes.
291 This is the default when
292 .B \-\-prefix\-addresses
297 Display the contents of the .stab, .stab.index, and .stab.excl
298 sections from an ELF file. This is only useful on systems (such as
299 Solaris 2.0) in which .stab debugging symbol-table entries are carried
300 in an ELF section. In most other file formats, debugging symbol-table
301 entries are interleaved with linkage symbols, and are visible in the
305 .BI "\-\-start\-address=" "address"
306 Start displaying data at the specified address. This affects the output
316 .BI "\-\-stop\-address=" "address"
317 Stop displaying data at the specified address. This affects the output
330 Symbol Table. Print the symbol table entries of the file.
331 This is similar to the information provided by the `\|\c
339 Dynamic Symbol Table. Print the dynamic symbol table entries of the
340 file. This is only meaningful for dynamic objects, such as certain
341 types of shared libraries. This is similar to the information
342 provided by the `\|\c
344 \|' program when given the
350 Print the version number of
358 Display all available header information, including the symbol table and
359 relocation entries. Using `\|\c
361 \|' is equivalent to specifying all of
363 .B \-a \-f \-h \-r \-t\c
367 .RB "`\|" binutils "\|'"
373 The GNU Binary Utilities\c
374 \&, Roland H. Pesch (October 1991);
378 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
380 Permission is granted to make and distribute verbatim copies of
381 this manual provided the copyright notice and this permission notice
382 are preserved on all copies.
384 Permission is granted to copy and distribute modified versions of this
385 manual under the conditions for verbatim copying, provided that the
386 entire resulting derived work is distributed under the terms of a
387 permission notice identical to this one.
389 Permission is granted to copy and distribute translations of this
390 manual into another language, under the above conditions for modified
391 versions, except that this permission notice may be included in
392 translations approved by the Free Software Foundation instead of in
393 the original English.