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