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 "[\|" \-\-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 "[\|" \-\-version "\|]"
63 .RB "[\|" \-\-help "\|]"
71 \& displays information about one or more object files.
72 The options control what particular information to display. This
73 information is mostly useful to programmers who are working on the
74 compilation tools, as opposed to programmers who just want their
75 program to compile and work.
78 are the object files to be examined. When you specify archives,
81 \& shows information on each of the member object files.
84 Where long and short forms of an option are shown together, they are
85 equivalent. At least one option besides
87 (\fB\-\-line\-numbers\fP) must be given.
92 .B \-\-archive\-headers
95 \& are archives, display the archive
96 header information (in a format similar to `\|\c
99 information you could list with `\|\c
104 the object file format of each archive member.
107 .BI "\-b " "bfdname"\c
109 .BI "\-\-target=" "bfdname"
110 Specify the object-code format for the object files to be
113 \&. This may not be necessary; \c
116 automatically recognize many formats. For example,
119 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
122 display summary information from the section headers (`\|\c
127 \|', which is explicitly identified (`\|\c
130 file in the format produced by Oasys compilers. You can list the
131 formats available with the `\|\c
137 Display debugging information. This attempts to parse debugging
138 information stored in the file and print it out using a C like syntax.
139 Only certain types of debugging information have been implemented.
145 Display the assembler mnemonics for the machine
149 This option only disassembles those sections which are
150 expected to contain instructions.
155 .B \-\-disassemble-all
156 Like \fB\-d\fP, but disassemble the contents of all sections, not just
157 those expected to contain instructions.
160 .B \-\-prefix\-addresses
161 When disassembling, print the complete address on each line. This is
162 the older disassembly format.
165 .B \-\-disassemble\-zeroes
166 Normally the disassembly output will skip blocks of zeroes. This
167 option directs the disassembler to disassemble those blocks, just like
175 .BI "\-\-endian=" "{big|little}"
176 Specify the endianness of the object files. This only affects
177 disassembly. This can be useful when disassembling a file format which
178 does not describe endianness information, such as S-records.
184 Display summary information from the overall header of
192 .B \-\-section\-headers
195 Display summary information from the section headers of the
200 Print a summary of the options to
208 Display a list showing all architectures and object formats available
209 for specification with \c
218 .BI "\-\-section=" "name"
219 Display information only for section \c
227 Label the display (using debugging information) with the filename
228 and source line numbers corresponding to the object code shown.
229 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
232 .BI "\-m " "machine"\c
234 .BI "\-\-architecture=" "machine"
235 Specify the architecture to use when disassembling object files. This
236 can be useful when disasembling object files which do not describe
237 architecture information, such as S-records. You can list the available
238 architectures with the \fB\-i\fP option.
244 Print the relocation entries of the file. If used with \fB\-d\fP or
245 \fB\-d\fP, the relocations are printed interspersed with the
251 .B \-\-dynamic\-reloc
252 Print the dynamic relocation entries of the file. This is only
253 meaningful for dynamic objects, such as certain types of shared
259 .B \-\-full\-contents
260 Display the full contents of any sections requested.
266 Display source code intermixed with disassembly, if possible. Implies
270 .B \-\-show\-raw\-insn
271 When disassembling instructions, print the instruction in hex as well as
272 in symbolic form. This is the default except when
273 .B \-\-prefix\-addresses
278 Display the contents of the .stab, .stab.index, and .stab.excl
279 sections from an ELF file. This is only useful on systems (such as
280 Solaris 2.0) in which .stab debugging symbol-table entries are carried
281 in an ELF section. In most other file formats, debugging symbol-table
282 entries are interleaved with linkage symbols, and are visible in the
286 .BI "\-\-start\-address=" "address"
287 Start displaying data at the specified address. This affects the output
297 .BI "\-\-stop\-address=" "address"
298 Stop displaying data at the specified address. This affects the output
311 Symbol Table. Print the symbol table entries of the file.
312 This is similar to the information provided by the `\|\c
320 Dynamic Symbol Table. Print the dynamic symbol table entries of the
321 file. This is only meaningful for dynamic objects, such as certain
322 types of shared libraries. This is similar to the information
323 provided by the `\|\c
325 \|' program when given the
331 Print the version number of
339 Display all available header information, including the symbol table and
340 relocation entries. Using `\|\c
342 \|' is equivalent to specifying all of
344 .B \-a \-f \-h \-r \-t\c
348 .RB "`\|" binutils "\|'"
354 The GNU Binary Utilities\c
355 \&, Roland H. Pesch (October 1991);
359 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
361 Permission is granted to make and distribute verbatim copies of
362 this manual provided the copyright notice and this permission notice
363 are preserved on all copies.
365 Permission is granted to copy and distribute modified versions of this
366 manual under the conditions for verbatim copying, provided that the
367 entire resulting derived work is distributed under the terms of a
368 permission notice identical to this one.
370 Permission is granted to copy and distribute translations of this
371 manual into another language, under the above conditions for modified
372 versions, except that this permission notice may be included in
373 translations approved by the Free Software Foundation instead of in
374 the original English.