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