]>
Commit | Line | Data |
---|---|---|
54f74247 | 1 | .\" Copyright (c) 1991, 1996, 1997 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 | 11 | objdump \- 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 | \&\|] |
9793039f | 24 | .RB "[\|" \-C | \-\-demangle "\|]" |
e1c14599 | 25 | .RB "[\|" \-\-debugging "\|]" |
eae04238 | 26 | .RB "[\|" \-d | \-\-disassemble "\|]" |
d5464baa | 27 | .RB "[\|" \-D | \-\-disassemble-all "\|]" |
51b8c416 | 28 | .RB "[\|" \-\-disassemble\-zeroes "\|]" |
67c8c901 ILT |
29 | .RB "[\|" \-EB | \-EL | \-\-endian=\c |
30 | .I {big|little}\c | |
31 | \&\|] | |
eae04238 DM |
32 | .RB "[\|" \-f | \-\-file\-headers "\|]" |
33 | .RB "[\|" \-h | \-\-section\-headers | |
34 | .RB "| " \-\-headers "\|]" | |
35 | .RB "[\|" \-i | \-\-info "\|]" | |
19450a0c RP |
36 | .RB "[\|" "\-j\ "\c |
37 | .I section\c | |
eae04238 DM |
38 | .RB " | " "\-\-section="\c |
39 | .I section\c | |
19450a0c | 40 | \&\|] |
eae04238 | 41 | .RB "[\|" \-l | \-\-line\-numbers "\|]" |
19450a0c RP |
42 | .RB "[\|" "\-m\ "\c |
43 | .I machine\c | |
eae04238 DM |
44 | .RB " | " "\-\-architecture="\c |
45 | .I machine\c | |
19450a0c | 46 | \&\|] |
14482680 | 47 | .RB "[\|" \-p | \-\-private\-headers "\|]" |
4cb99ff2 | 48 | .RB "[\|" \-\-prefix\-addresses "\|]" |
1f72cab1 | 49 | .RB "[\|" \-r | \-\-reloc "\|]" |
de3b08ac | 50 | .RB "[\|" \-R | \-\-dynamic\-reloc "\|]" |
eae04238 | 51 | .RB "[\|" \-s | \-\-full\-contents "\|]" |
a8e27cc6 | 52 | .RB "[\|" \-S | \-\-source "\|]" |
5c59269f | 53 | .RB "[\|" \-\-[no\-]show\-raw\-insn "\|]" |
1f72cab1 DM |
54 | .RB "[\|" \-\-stabs "\|]" |
55 | .RB "[\|" \-t | \-\-syms "\|]" | |
de3b08ac | 56 | .RB "[\|" \-T | \-\-dynamic\-syms "\|]" |
eae04238 | 57 | .RB "[\|" \-x | \-\-all\-headers "\|]" |
aa21a2a9 ILT |
58 | .RB "[\|" "\-\-start\-address="\c |
59 | .I address\c | |
60 | \&\|] | |
61 | .RB "[\|" "\-\-stop\-address="\c | |
62 | .I address\c | |
63 | \&\|] | |
ab3a59cf ILT |
64 | .RB "[\|" "\-\-adjust\-vma="\c |
65 | .I offset\c | |
66 | \&\|] | |
b26ac613 DM |
67 | .RB "[\|" \-\-version "\|]" |
68 | .RB "[\|" \-\-help "\|]" | |
1f72cab1 | 69 | .I objfile\c |
19450a0c RP |
70 | \&.\|.\|. |
71 | .ad b | |
72 | .hy 1 | |
73 | .SH DESCRIPTION | |
74 | \c | |
75 | .B objdump\c | |
76 | \& displays information about one or more object files. | |
77 | The options control what particular information to display. This | |
78 | information is mostly useful to programmers who are working on the | |
79 | compilation tools, as opposed to programmers who just want their | |
80 | program to compile and work. | |
b26ac613 | 81 | .PP |
1f72cab1 | 82 | .IR "objfile" .\|.\|. |
b26ac613 | 83 | are the object files to be examined. When you specify archives, |
19450a0c RP |
84 | \c |
85 | .B objdump\c | |
86 | \& shows information on each of the member object files. | |
87 | ||
b26ac613 DM |
88 | .SH OPTIONS |
89 | Where long and short forms of an option are shown together, they are | |
ed78872a DM |
90 | equivalent. At least one option besides |
91 | .B \-l | |
eae04238 | 92 | (\fB\-\-line\-numbers\fP) must be given. |
b26ac613 | 93 | |
19450a0c RP |
94 | .TP |
95 | .B \-a | |
eae04238 DM |
96 | .TP |
97 | .B \-\-archive\-headers | |
19450a0c | 98 | If any files from \c |
1f72cab1 | 99 | .I objfile\c |
19450a0c RP |
100 | \& are archives, display the archive |
101 | header information (in a format similar to `\|\c | |
102 | .B ls \-l\c | |
103 | \|'). Besides the | |
104 | information you could list with `\|\c | |
105 | .B ar tv\c | |
106 | \|', `\|\c | |
107 | .B objdump \-a\c | |
108 | \|' shows | |
109 | the object file format of each archive member. | |
110 | ||
ab3a59cf ILT |
111 | .TP |
112 | .BI "\-\-adjust\-vma=" "offset" | |
113 | When dumping information, first add | |
114 | .I offset | |
115 | to all the section addresses. This is useful if the section addresses | |
116 | do not correspond to the symbol table, which can happen when putting | |
117 | sections at particular addresses when using a format which can not | |
118 | represent section addresses, such as a.out. | |
119 | ||
19450a0c | 120 | .TP |
eae04238 DM |
121 | .BI "\-b " "bfdname"\c |
122 | .TP | |
5740d9df | 123 | .BI "\-\-target=" "bfdname" |
b26ac613 | 124 | Specify the object-code format for the object files to be |
19450a0c RP |
125 | \c |
126 | .I bfdname\c | |
127 | \&. This may not be necessary; \c | |
128 | .I objdump\c | |
129 | \& can | |
130 | automatically recognize many formats. For example, | |
131 | .sp | |
132 | .br | |
133 | objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o | |
134 | .br | |
135 | .sp | |
b26ac613 | 136 | display summary information from the section headers (`\|\c |
19450a0c RP |
137 | .B \-h\c |
138 | \|') of | |
139 | `\|\c | |
140 | .B fu.o\c | |
141 | \|', which is explicitly identified (`\|\c | |
142 | .B \-m\c | |
143 | \|') as a Vax object | |
144 | file in the format produced by Oasys compilers. You can list the | |
145 | formats available with the `\|\c | |
146 | .B \-i\c | |
147 | \|' option. | |
148 | ||
9793039f ILT |
149 | .TP |
150 | .B \-C | |
151 | .TP | |
152 | .B \-\-demangle | |
153 | Decode (\fIdemangle\fP) low-level symbol names into user-level names. | |
154 | Besides removing any initial underscore prepended by the system, this | |
155 | makes C++ function names readable. | |
156 | ||
e1c14599 ILT |
157 | .TP |
158 | .B \-\-debugging | |
159 | Display debugging information. This attempts to parse debugging | |
160 | information stored in the file and print it out using a C like syntax. | |
161 | Only certain types of debugging information have been implemented. | |
162 | ||
19450a0c RP |
163 | .TP |
164 | .B \-d | |
eae04238 DM |
165 | .TP |
166 | .B \-\-disassemble | |
167 | Display the assembler mnemonics for the machine | |
19450a0c | 168 | instructions from \c |
1f72cab1 | 169 | .I objfile\c |
19450a0c | 170 | \&. |
d5464baa ILT |
171 | This option only disassembles those sections which are |
172 | expected to contain instructions. | |
173 | ||
174 | .TP | |
175 | .B \-D | |
176 | .TP | |
177 | .B \-\-disassemble-all | |
178 | Like \fB\-d\fP, but disassemble the contents of all sections, not just | |
179 | those expected to contain instructions. | |
19450a0c | 180 | |
51b8c416 ILT |
181 | .TP |
182 | .B \-\-prefix\-addresses | |
183 | When disassembling, print the complete address on each line. This is | |
184 | the older disassembly format. | |
185 | ||
186 | .TP | |
187 | .B \-\-disassemble\-zeroes | |
188 | Normally the disassembly output will skip blocks of zeroes. This | |
189 | option directs the disassembler to disassemble those blocks, just like | |
190 | any other data. | |
191 | ||
67c8c901 ILT |
192 | .TP |
193 | .B \-EB | |
194 | .TP | |
195 | .B \-EL | |
196 | .TP | |
197 | .BI "\-\-endian=" "{big|little}" | |
198 | Specify the endianness of the object files. This only affects | |
199 | disassembly. This can be useful when disassembling a file format which | |
200 | does not describe endianness information, such as S-records. | |
201 | ||
19450a0c RP |
202 | .TP |
203 | .B \-f | |
eae04238 DM |
204 | .TP |
205 | .B \-\-file\-headers | |
206 | Display summary information from the overall header of | |
19450a0c | 207 | each file in \c |
1f72cab1 | 208 | .I objfile\c |
19450a0c RP |
209 | \&. |
210 | ||
211 | .TP | |
212 | .B \-h | |
213 | .TP | |
eae04238 DM |
214 | .B \-\-section\-headers |
215 | .TP | |
216 | .B \-\-headers | |
217 | Display summary information from the section headers of the | |
19450a0c RP |
218 | object file. |
219 | ||
b26ac613 DM |
220 | .TP |
221 | .B \-\-help | |
222 | Print a summary of the options to | |
223 | .B objdump | |
224 | and exit. | |
225 | ||
19450a0c RP |
226 | .TP |
227 | .B \-i | |
eae04238 DM |
228 | .TP |
229 | .B \-\-info | |
19450a0c RP |
230 | Display a list showing all architectures and object formats available |
231 | for specification with \c | |
232 | .B \-b\c | |
233 | \& or \c | |
234 | .B \-m\c | |
235 | \&. | |
236 | ||
237 | .TP | |
eae04238 DM |
238 | .BI "\-j " "name"\c |
239 | .TP | |
5740d9df | 240 | .BI "\-\-section=" "name" |
19450a0c RP |
241 | Display information only for section \c |
242 | .I name\c | |
5740d9df | 243 | \&. |
19450a0c RP |
244 | |
245 | .TP | |
246 | .B \-l | |
eae04238 DM |
247 | .TP |
248 | .B \-\-line\-numbers | |
249 | Label the display (using debugging information) with the filename | |
250 | and source line numbers corresponding to the object code shown. | |
11548211 | 251 | Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP. |
19450a0c RP |
252 | |
253 | .TP | |
eae04238 DM |
254 | .BI "\-m " "machine"\c |
255 | .TP | |
5740d9df | 256 | .BI "\-\-architecture=" "machine" |
67c8c901 | 257 | Specify the architecture to use when disassembling object files. This |
a1535f42 | 258 | can be useful when disassembling object files which do not describe |
67c8c901 ILT |
259 | architecture information, such as S-records. You can list the available |
260 | architectures with the \fB\-i\fP option. | |
19450a0c | 261 | |
14482680 ILT |
262 | .TP |
263 | .B \-p | |
264 | .TP | |
265 | .B \-\-private\-headers | |
266 | Print information that is specific to the object file format. The | |
267 | exact information printed depends upon the object file format. For | |
268 | some object file formats, no additional information is printed. | |
269 | ||
19450a0c RP |
270 | .TP |
271 | .B \-r | |
272 | .TP | |
1f72cab1 | 273 | .B \-\-reloc |
d5464baa ILT |
274 | Print the relocation entries of the file. If used with \fB\-d\fP or |
275 | \fB\-d\fP, the relocations are printed interspersed with the | |
276 | disassembly. | |
19450a0c | 277 | |
de3b08ac ILT |
278 | .TP |
279 | .B \-R | |
280 | .TP | |
281 | .B \-\-dynamic\-reloc | |
282 | Print the dynamic relocation entries of the file. This is only | |
283 | meaningful for dynamic objects, such as certain types of shared | |
284 | libraries. | |
285 | ||
19450a0c RP |
286 | .TP |
287 | .B \-s | |
eae04238 DM |
288 | .TP |
289 | .B \-\-full\-contents | |
19450a0c RP |
290 | Display the full contents of any sections requested. |
291 | ||
a8e27cc6 ILT |
292 | .TP |
293 | .B \-S | |
294 | .TP | |
295 | .B \-\-source | |
296 | Display source code intermixed with disassembly, if possible. Implies | |
297 | \fB-d\fP. | |
298 | ||
458bbd1f | 299 | .TP |
4cb99ff2 | 300 | .B \-\-show\-raw\-insn |
458bbd1f | 301 | When disassembling instructions, print the instruction in hex as well as |
4cb99ff2 ILT |
302 | in symbolic form. This is the default except when |
303 | .B \-\-prefix\-addresses | |
304 | is used. | |
458bbd1f | 305 | |
5c59269f ILT |
306 | .TP |
307 | .B \-\-no\-show\-raw\-insn | |
308 | When disassembling instructions, do not print the instruction bytes. | |
309 | This is the default when | |
310 | .B \-\-prefix\-addresses | |
311 | is used. | |
312 | ||
c5f0c938 | 313 | .TP |
1f72cab1 | 314 | .B \-\-stabs |
c3c93fda JG |
315 | Display the contents of the .stab, .stab.index, and .stab.excl |
316 | sections from an ELF file. This is only useful on systems (such as | |
317 | Solaris 2.0) in which .stab debugging symbol-table entries are carried | |
318 | in an ELF section. In most other file formats, debugging symbol-table | |
319 | entries are interleaved with linkage symbols, and are visible in the | |
1f72cab1 | 320 | \-\-syms output. |
c5f0c938 | 321 | |
aa21a2a9 ILT |
322 | .TP |
323 | .BI "\-\-start\-address=" "address" | |
324 | Start displaying data at the specified address. This affects the output | |
325 | of the | |
326 | .B \-d\c | |
327 | , | |
328 | .B \-r | |
329 | and | |
330 | .B \-s | |
331 | options. | |
332 | ||
333 | .TP | |
334 | .BI "\-\-stop\-address=" "address" | |
335 | Stop displaying data at the specified address. This affects the output | |
336 | of the | |
337 | .B \-d\c | |
338 | , | |
339 | .B \-r | |
340 | and | |
341 | .B \-s | |
342 | options. | |
343 | ||
19450a0c RP |
344 | .TP |
345 | .B \-t | |
346 | .TP | |
1f72cab1 | 347 | .B \-\-syms |
19450a0c RP |
348 | Symbol Table. Print the symbol table entries of the file. |
349 | This is similar to the information provided by the `\|\c | |
350 | .B nm\c | |
351 | \|' program. | |
352 | ||
de3b08ac ILT |
353 | .TP |
354 | .B \-T | |
355 | .TP | |
356 | .B \-\-dynamic\-syms | |
357 | Dynamic Symbol Table. Print the dynamic symbol table entries of the | |
358 | file. This is only meaningful for dynamic objects, such as certain | |
359 | types of shared libraries. This is similar to the information | |
360 | provided by the `\|\c | |
361 | .B nm\c | |
362 | \|' program when given the | |
363 | .B \-D (\-\-dynamic) | |
364 | option. | |
365 | ||
b26ac613 DM |
366 | .TP |
367 | .B \-\-version | |
368 | Print the version number of | |
369 | .B objdump | |
370 | and exit. | |
371 | ||
19450a0c RP |
372 | .TP |
373 | .B \-x | |
eae04238 DM |
374 | .TP |
375 | .B \-\-all\-headers | |
19450a0c RP |
376 | Display all available header information, including the symbol table and |
377 | relocation entries. Using `\|\c | |
378 | .B \-x\c | |
379 | \|' is equivalent to specifying all of | |
380 | `\|\c | |
381 | .B \-a \-f \-h \-r \-t\c | |
382 | \|'. | |
383 | ||
19450a0c RP |
384 | .SH "SEE ALSO" |
385 | .RB "`\|" binutils "\|'" | |
386 | entry in | |
387 | .B | |
388 | info\c | |
389 | \&; | |
390 | .I | |
391 | The GNU Binary Utilities\c | |
392 | \&, Roland H. Pesch (October 1991); | |
393 | .BR nm "(" 1 ")." | |
394 | ||
395 | .SH COPYING | |
1a418120 | 396 | Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. |
19450a0c RP |
397 | .PP |
398 | Permission is granted to make and distribute verbatim copies of | |
399 | this manual provided the copyright notice and this permission notice | |
400 | are preserved on all copies. | |
401 | .PP | |
402 | Permission is granted to copy and distribute modified versions of this | |
403 | manual under the conditions for verbatim copying, provided that the | |
404 | entire resulting derived work is distributed under the terms of a | |
405 | permission notice identical to this one. | |
406 | .PP | |
407 | Permission is granted to copy and distribute translations of this | |
408 | manual into another language, under the above conditions for modified | |
409 | versions, except that this permission notice may be included in | |
410 | translations approved by the Free Software Foundation instead of in | |
411 | the original English. |