From Michael Snyder <Michael_Snyder@next.com>:
[deliverable/binutils-gdb.git] / binutils / objdump.1
CommitLineData
458bbd1f 1.\" Copyright (c) 1991, 1996 Free Software Foundation
19450a0c 2.\" See section COPYING for conditions for redistribution
19450a0c
RP
3.TH objdump 1 "5 November 1991" "cygnus support" "GNU Development Tools"
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
938fa52b 11objdump \- display information from object files.
19450a0c
RP
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
b26ac613 17.B objdump
eae04238 18.RB "[\|" \-a | \-\-archive\-headers "\|]"
19450a0c
RP
19.RB "[\|" "\-b\ "\c
20.I bfdname\c
eae04238
DM
21.RB " | " "\-\-target="\c
22.I bfdname\c
19450a0c 23\&\|]
e1c14599 24.RB "[\|" \-\-debugging "\|]"
eae04238 25.RB "[\|" \-d | \-\-disassemble "\|]"
d5464baa 26.RB "[\|" \-D | \-\-disassemble-all "\|]"
eae04238
DM
27.RB "[\|" \-f | \-\-file\-headers "\|]"
28.RB "[\|" \-h | \-\-section\-headers
29.RB "| " \-\-headers "\|]"
30.RB "[\|" \-i | \-\-info "\|]"
19450a0c
RP
31.RB "[\|" "\-j\ "\c
32.I section\c
eae04238
DM
33.RB " | " "\-\-section="\c
34.I section\c
19450a0c 35\&\|]
eae04238 36.RB "[\|" \-l | \-\-line\-numbers "\|]"
19450a0c
RP
37.RB "[\|" "\-m\ "\c
38.I machine\c
eae04238
DM
39.RB " | " "\-\-architecture="\c
40.I machine\c
19450a0c 41\&\|]
1f72cab1 42.RB "[\|" \-r | \-\-reloc "\|]"
de3b08ac 43.RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
eae04238 44.RB "[\|" \-s | \-\-full\-contents "\|]"
a8e27cc6 45.RB "[\|" \-S | \-\-source "\|]"
458bbd1f 46.RB "[\|" \-\-show\-raw\-insn "\|]"
1f72cab1
DM
47.RB "[\|" \-\-stabs "\|]"
48.RB "[\|" \-t | \-\-syms "\|]"
de3b08ac 49.RB "[\|" \-T | \-\-dynamic\-syms "\|]"
eae04238 50.RB "[\|" \-x | \-\-all\-headers "\|]"
aa21a2a9
ILT
51.RB "[\|" "\-\-start\-address="\c
52.I address\c
53\&\|]
54.RB "[\|" "\-\-stop\-address="\c
55.I address\c
56\&\|]
b26ac613
DM
57.RB "[\|" \-\-version "\|]"
58.RB "[\|" \-\-help "\|]"
1f72cab1 59.I objfile\c
19450a0c
RP
60\&.\|.\|.
61.ad b
62.hy 1
63.SH DESCRIPTION
64\c
65.B objdump\c
66\& displays information about one or more object files.
67The options control what particular information to display. This
68information is mostly useful to programmers who are working on the
69compilation tools, as opposed to programmers who just want their
70program to compile and work.
b26ac613 71.PP
1f72cab1 72.IR "objfile" .\|.\|.
b26ac613 73are the object files to be examined. When you specify archives,
19450a0c
RP
74\c
75.B objdump\c
76\& shows information on each of the member object files.
77
b26ac613
DM
78.SH OPTIONS
79Where long and short forms of an option are shown together, they are
ed78872a
DM
80equivalent. At least one option besides
81.B \-l
eae04238 82(\fB\-\-line\-numbers\fP) must be given.
b26ac613 83
19450a0c
RP
84.TP
85.B \-a
eae04238
DM
86.TP
87.B \-\-archive\-headers
19450a0c 88If any files from \c
1f72cab1 89.I objfile\c
19450a0c
RP
90\& are archives, display the archive
91header information (in a format similar to `\|\c
92.B ls \-l\c
93\|'). Besides the
94information you could list with `\|\c
95.B ar tv\c
96\|', `\|\c
97.B objdump \-a\c
98\|' shows
99the object file format of each archive member.
100
101.TP
eae04238
DM
102.BI "\-b " "bfdname"\c
103.TP
5740d9df 104.BI "\-\-target=" "bfdname"
b26ac613 105Specify the object-code format for the object files to be
19450a0c
RP
106\c
107.I bfdname\c
108\&. This may not be necessary; \c
109.I objdump\c
110\& can
111automatically recognize many formats. For example,
112.sp
113.br
114objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
115.br
116.sp
b26ac613 117display summary information from the section headers (`\|\c
19450a0c
RP
118.B \-h\c
119\|') of
120`\|\c
121.B fu.o\c
122\|', which is explicitly identified (`\|\c
123.B \-m\c
124\|') as a Vax object
125file in the format produced by Oasys compilers. You can list the
126formats available with the `\|\c
127.B \-i\c
128\|' option.
129
e1c14599
ILT
130.TP
131.B \-\-debugging
132Display debugging information. This attempts to parse debugging
133information stored in the file and print it out using a C like syntax.
134Only certain types of debugging information have been implemented.
135
19450a0c
RP
136.TP
137.B \-d
eae04238
DM
138.TP
139.B \-\-disassemble
140Display the assembler mnemonics for the machine
19450a0c 141instructions from \c
1f72cab1 142.I objfile\c
19450a0c 143\&.
d5464baa
ILT
144This option only disassembles those sections which are
145expected to contain instructions.
146
147.TP
148.B \-D
149.TP
150.B \-\-disassemble-all
151Like \fB\-d\fP, but disassemble the contents of all sections, not just
152those expected to contain instructions.
19450a0c
RP
153
154.TP
155.B \-f
eae04238
DM
156.TP
157.B \-\-file\-headers
158Display summary information from the overall header of
19450a0c 159each file in \c
1f72cab1 160.I objfile\c
19450a0c
RP
161\&.
162
163.TP
164.B \-h
165.TP
eae04238
DM
166.B \-\-section\-headers
167.TP
168.B \-\-headers
169Display summary information from the section headers of the
19450a0c
RP
170object file.
171
b26ac613
DM
172.TP
173.B \-\-help
174Print a summary of the options to
175.B objdump
176and exit.
177
19450a0c
RP
178.TP
179.B \-i
eae04238
DM
180.TP
181.B \-\-info
19450a0c
RP
182Display a list showing all architectures and object formats available
183for specification with \c
184.B \-b\c
185\& or \c
186.B \-m\c
187\&.
188
189.TP
eae04238
DM
190.BI "\-j " "name"\c
191.TP
5740d9df 192.BI "\-\-section=" "name"
19450a0c
RP
193Display information only for section \c
194.I name\c
5740d9df 195\&.
19450a0c
RP
196
197.TP
198.B \-l
eae04238
DM
199.TP
200.B \-\-line\-numbers
201Label the display (using debugging information) with the filename
202and source line numbers corresponding to the object code shown.
d5464baa 203Only useful with \fB\-d\fP or \fB\-D\fP.
19450a0c
RP
204
205.TP
eae04238
DM
206.BI "\-m " "machine"\c
207.TP
5740d9df 208.BI "\-\-architecture=" "machine"
19450a0c 209Specify the object files \c
1f72cab1 210.I objfile\c
19450a0c
RP
211\& are for architecture
212\c
213.I machine\c
214\&. You can list available architectures using the `\|\c
215.B \-i\c
216\|'
217option.
218
219.TP
220.B \-r
221.TP
1f72cab1 222.B \-\-reloc
d5464baa
ILT
223Print the relocation entries of the file. If used with \fB\-d\fP or
224\fB\-d\fP, the relocations are printed interspersed with the
225disassembly.
19450a0c 226
de3b08ac
ILT
227.TP
228.B \-R
229.TP
230.B \-\-dynamic\-reloc
231Print the dynamic relocation entries of the file. This is only
232meaningful for dynamic objects, such as certain types of shared
233libraries.
234
19450a0c
RP
235.TP
236.B \-s
eae04238
DM
237.TP
238.B \-\-full\-contents
19450a0c
RP
239Display the full contents of any sections requested.
240
a8e27cc6
ILT
241.TP
242.B \-S
243.TP
244.B \-\-source
245Display source code intermixed with disassembly, if possible. Implies
246\fB-d\fP.
247
458bbd1f
DE
248.TP
249.B \-\-show-raw-insn
250When disassembling instructions, print the instruction in hex as well as
251in symbolic form. Not all targets handle this correctly yet.
252
c5f0c938 253.TP
1f72cab1 254.B \-\-stabs
c3c93fda
JG
255Display the contents of the .stab, .stab.index, and .stab.excl
256sections from an ELF file. This is only useful on systems (such as
257Solaris 2.0) in which .stab debugging symbol-table entries are carried
258in an ELF section. In most other file formats, debugging symbol-table
259entries are interleaved with linkage symbols, and are visible in the
1f72cab1 260\-\-syms output.
c5f0c938 261
aa21a2a9
ILT
262.TP
263.BI "\-\-start\-address=" "address"
264Start displaying data at the specified address. This affects the output
265of the
266.B \-d\c
267,
268.B \-r
269and
270.B \-s
271options.
272
273.TP
274.BI "\-\-stop\-address=" "address"
275Stop displaying data at the specified address. This affects the output
276of the
277.B \-d\c
278,
279.B \-r
280and
281.B \-s
282options.
283
19450a0c
RP
284.TP
285.B \-t
286.TP
1f72cab1 287.B \-\-syms
19450a0c
RP
288Symbol Table. Print the symbol table entries of the file.
289This is similar to the information provided by the `\|\c
290.B nm\c
291\|' program.
292
de3b08ac
ILT
293.TP
294.B \-T
295.TP
296.B \-\-dynamic\-syms
297Dynamic Symbol Table. Print the dynamic symbol table entries of the
298file. This is only meaningful for dynamic objects, such as certain
299types of shared libraries. This is similar to the information
300provided by the `\|\c
301.B nm\c
302\|' program when given the
303.B \-D (\-\-dynamic)
304option.
305
b26ac613
DM
306.TP
307.B \-\-version
308Print the version number of
309.B objdump
310and exit.
311
19450a0c
RP
312.TP
313.B \-x
eae04238
DM
314.TP
315.B \-\-all\-headers
19450a0c
RP
316Display all available header information, including the symbol table and
317relocation entries. Using `\|\c
318.B \-x\c
319\|' is equivalent to specifying all of
320`\|\c
321.B \-a \-f \-h \-r \-t\c
322\|'.
323
19450a0c
RP
324.SH "SEE ALSO"
325.RB "`\|" binutils "\|'"
326entry in
327.B
328info\c
329\&;
330.I
331The GNU Binary Utilities\c
332\&, Roland H. Pesch (October 1991);
333.BR nm "(" 1 ")."
334
335.SH COPYING
1a418120 336Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
19450a0c
RP
337.PP
338Permission is granted to make and distribute verbatim copies of
339this manual provided the copyright notice and this permission notice
340are preserved on all copies.
341.PP
342Permission is granted to copy and distribute modified versions of this
343manual under the conditions for verbatim copying, provided that the
344entire resulting derived work is distributed under the terms of a
345permission notice identical to this one.
346.PP
347Permission is granted to copy and distribute translations of this
348manual into another language, under the above conditions for modified
349versions, except that this permission notice may be included in
350translations approved by the Free Software Foundation instead of in
351the original English.
This page took 0.171904 seconds and 4 git commands to generate.