1 .\" Copyright (c) 1991, 1996 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 "[\|" \-EB | \-EL | \-\-endian=\c
30 .RB "[\|" \-f | \-\-file\-headers "\|]"
31 .RB "[\|" \-h | \-\-section\-headers
32 .RB "| " \-\-headers "\|]"
33 .RB "[\|" \-i | \-\-info "\|]"
36 .RB " | " "\-\-section="\c
39 .RB "[\|" \-l | \-\-line\-numbers "\|]"
42 .RB " | " "\-\-architecture="\c
45 .RB "[\|" \-\-prefix\-addresses "\|]"
46 .RB "[\|" \-r | \-\-reloc "\|]"
47 .RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
48 .RB "[\|" \-s | \-\-full\-contents "\|]"
49 .RB "[\|" \-S | \-\-source "\|]"
50 .RB "[\|" \-\-show\-raw\-insn "\|]"
51 .RB "[\|" \-\-stabs "\|]"
52 .RB "[\|" \-t | \-\-syms "\|]"
53 .RB "[\|" \-T | \-\-dynamic\-syms "\|]"
54 .RB "[\|" \-x | \-\-all\-headers "\|]"
55 .RB "[\|" "\-\-start\-address="\c
58 .RB "[\|" "\-\-stop\-address="\c
61 .RB "[\|" \-\-version "\|]"
62 .RB "[\|" \-\-help "\|]"
70 \& displays information about one or more object files.
71 The options control what particular information to display. This
72 information is mostly useful to programmers who are working on the
73 compilation tools, as opposed to programmers who just want their
74 program to compile and work.
77 are the object files to be examined. When you specify archives,
80 \& shows information on each of the member object files.
83 Where long and short forms of an option are shown together, they are
84 equivalent. At least one option besides
86 (\fB\-\-line\-numbers\fP) must be given.
91 .B \-\-archive\-headers
94 \& are archives, display the archive
95 header information (in a format similar to `\|\c
98 information you could list with `\|\c
103 the object file format of each archive member.
106 .BI "\-b " "bfdname"\c
108 .BI "\-\-target=" "bfdname"
109 Specify the object-code format for the object files to be
112 \&. This may not be necessary; \c
115 automatically recognize many formats. For example,
118 objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
121 display summary information from the section headers (`\|\c
126 \|', which is explicitly identified (`\|\c
129 file in the format produced by Oasys compilers. You can list the
130 formats available with the `\|\c
136 Display debugging information. This attempts to parse debugging
137 information stored in the file and print it out using a C like syntax.
138 Only certain types of debugging information have been implemented.
144 Display the assembler mnemonics for the machine
148 This option only disassembles those sections which are
149 expected to contain instructions.
154 .B \-\-disassemble-all
155 Like \fB\-d\fP, but disassemble the contents of all sections, not just
156 those expected to contain instructions.
163 .BI "\-\-endian=" "{big|little}"
164 Specify the endianness of the object files. This only affects
165 disassembly. This can be useful when disassembling a file format which
166 does not describe endianness information, such as S-records.
172 Display summary information from the overall header of
180 .B \-\-section\-headers
183 Display summary information from the section headers of the
188 Print a summary of the options to
196 Display a list showing all architectures and object formats available
197 for specification with \c
206 .BI "\-\-section=" "name"
207 Display information only for section \c
215 Label the display (using debugging information) with the filename
216 and source line numbers corresponding to the object code shown.
217 Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
220 .BI "\-m " "machine"\c
222 .BI "\-\-architecture=" "machine"
223 Specify the architecture to use when disassembling object files. This
224 can be useful when disasembling object files which do not describe
225 architecture information, such as S-records. You can list the available
226 architectures with the \fB\-i\fP option.
229 .B \-\-prefix\-addresses
230 When disassembling, print the complete address on each line. This is
231 the older disassembly format.
237 Print the relocation entries of the file. If used with \fB\-d\fP or
238 \fB\-d\fP, the relocations are printed interspersed with the
244 .B \-\-dynamic\-reloc
245 Print the dynamic relocation entries of the file. This is only
246 meaningful for dynamic objects, such as certain types of shared
252 .B \-\-full\-contents
253 Display the full contents of any sections requested.
259 Display source code intermixed with disassembly, if possible. Implies
263 .B \-\-show\-raw\-insn
264 When disassembling instructions, print the instruction in hex as well as
265 in symbolic form. This is the default except when
266 .B \-\-prefix\-addresses
271 Display the contents of the .stab, .stab.index, and .stab.excl
272 sections from an ELF file. This is only useful on systems (such as
273 Solaris 2.0) in which .stab debugging symbol-table entries are carried
274 in an ELF section. In most other file formats, debugging symbol-table
275 entries are interleaved with linkage symbols, and are visible in the
279 .BI "\-\-start\-address=" "address"
280 Start displaying data at the specified address. This affects the output
290 .BI "\-\-stop\-address=" "address"
291 Stop displaying data at the specified address. This affects the output
304 Symbol Table. Print the symbol table entries of the file.
305 This is similar to the information provided by the `\|\c
313 Dynamic Symbol Table. Print the dynamic symbol table entries of the
314 file. This is only meaningful for dynamic objects, such as certain
315 types of shared libraries. This is similar to the information
316 provided by the `\|\c
318 \|' program when given the
324 Print the version number of
332 Display all available header information, including the symbol table and
333 relocation entries. Using `\|\c
335 \|' is equivalent to specifying all of
337 .B \-a \-f \-h \-r \-t\c
341 .RB "`\|" binutils "\|'"
347 The GNU Binary Utilities\c
348 \&, Roland H. Pesch (October 1991);
352 Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
354 Permission is granted to make and distribute verbatim copies of
355 this manual provided the copyright notice and this permission notice
356 are preserved on all copies.
358 Permission is granted to copy and distribute modified versions of this
359 manual under the conditions for verbatim copying, provided that the
360 entire resulting derived work is distributed under the terms of a
361 permission notice identical to this one.
363 Permission is granted to copy and distribute translations of this
364 manual into another language, under the above conditions for modified
365 versions, except that this permission notice may be included in
366 translations approved by the Free Software Foundation instead of in
367 the original English.