* mpw-config.in: New file, MPW configure fragment for binutils.
[deliverable/binutils-gdb.git] / binutils / objdump.1
... / ...
CommitLineData
1.\" Copyright (c) 1991 Free Software Foundation
2.\" See section COPYING for conditions for redistribution
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
11objdump \- display information from object files.
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
17.B objdump
18.RB "[\|" \-a | \-\-archive\-headers "\|]"
19.RB "[\|" "\-b\ "\c
20.I bfdname\c
21.RB " | " "\-\-target="\c
22.I bfdname\c
23\&\|]
24.RB "[\|" \-d | \-\-disassemble "\|]"
25.RB "[\|" \-f | \-\-file\-headers "\|]"
26.RB "[\|" \-h | \-\-section\-headers
27.RB "| " \-\-headers "\|]"
28.RB "[\|" \-i | \-\-info "\|]"
29.RB "[\|" "\-j\ "\c
30.I section\c
31.RB " | " "\-\-section="\c
32.I section\c
33\&\|]
34.RB "[\|" \-l | \-\-line\-numbers "\|]"
35.RB "[\|" "\-m\ "\c
36.I machine\c
37.RB " | " "\-\-architecture="\c
38.I machine\c
39\&\|]
40.RB "[\|" \-r | \-\-reloc "\|]"
41.RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
42.RB "[\|" \-s | \-\-full\-contents "\|]"
43.RB "[\|" \-\-stabs "\|]"
44.RB "[\|" \-t | \-\-syms "\|]"
45.RB "[\|" \-T | \-\-dynamic\-syms "\|]"
46.RB "[\|" \-x | \-\-all\-headers "\|]"
47.RB "[\|" \-\-version "\|]"
48.RB "[\|" \-\-help "\|]"
49.I objfile\c
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.
61.PP
62.IR "objfile" .\|.\|.
63are the object files to be examined. When you specify archives,
64\c
65.B objdump\c
66\& shows information on each of the member object files.
67
68.SH OPTIONS
69Where long and short forms of an option are shown together, they are
70equivalent. At least one option besides
71.B \-l
72(\fB\-\-line\-numbers\fP) must be given.
73
74.TP
75.B \-a
76.TP
77.B \-\-archive\-headers
78If any files from \c
79.I objfile\c
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
92.BI "\-b " "bfdname"\c
93.TP
94.BI "\-\-target=" "bfdname"\c
95\&
96Specify the object-code format for the object files to be
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
109display summary information from the section headers (`\|\c
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
124.TP
125.B \-\-disassemble
126Display the assembler mnemonics for the machine
127instructions from \c
128.I objfile\c
129\&.
130
131.TP
132.B \-f
133.TP
134.B \-\-file\-headers
135Display summary information from the overall header of
136each file in \c
137.I objfile\c
138\&.
139
140.TP
141.B \-h
142.TP
143.B \-\-section\-headers
144.TP
145.B \-\-headers
146Display summary information from the section headers of the
147object file.
148
149.TP
150.B \-\-help
151Print a summary of the options to
152.B objdump
153and exit.
154
155.TP
156.B \-i
157.TP
158.B \-\-info
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
167.BI "\-j " "name"\c
168.TP
169.BI "\-\-section=" "name"\c
170\&
171Display information only for section \c
172.I name\c
173\&
174
175.TP
176.B \-l
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.
182
183.TP
184.BI "\-m " "machine"\c
185.TP
186.BI "\-\-architecture=" "machine"\c
187\&
188Specify the object files \c
189.I objfile\c
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
201.B \-\-reloc
202Print the relocation entries of the file.
203
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
212.TP
213.B \-s
214.TP
215.B \-\-full\-contents
216Display the full contents of any sections requested.
217
218.TP
219.B \-\-stabs
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
225\-\-syms output.
226
227.TP
228.B \-t
229.TP
230.B \-\-syms
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
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
249.TP
250.B \-\-version
251Print the version number of
252.B objdump
253and exit.
254
255.TP
256.B \-x
257.TP
258.B \-\-all\-headers
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
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.022889 seconds and 4 git commands to generate.