]> CyberLeo.Net >> Repos - FreeBSD/releng/8.2.git/blob - contrib/binutils/binutils/doc/readelf.1
Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.
[FreeBSD/releng/8.2.git] / contrib / binutils / binutils / doc / readelf.1
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  | will give a
29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .\"
67 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
68 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
69 .    \" fudge factors for nroff and troff
70 .if n \{\
71 .    ds #H 0
72 .    ds #V .8m
73 .    ds #F .3m
74 .    ds #[ \f1
75 .    ds #] \fP
76 .\}
77 .if t \{\
78 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
79 .    ds #V .6m
80 .    ds #F 0
81 .    ds #[ \&
82 .    ds #] \&
83 .\}
84 .    \" simple accents for nroff and troff
85 .if n \{\
86 .    ds ' \&
87 .    ds ` \&
88 .    ds ^ \&
89 .    ds , \&
90 .    ds ~ ~
91 .    ds /
92 .\}
93 .if t \{\
94 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
95 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
96 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
97 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
98 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
99 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
100 .\}
101 .    \" troff and (daisy-wheel) nroff accents
102 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
103 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
104 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
105 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
106 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
107 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
108 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
109 .ds ae a\h'-(\w'a'u*4/10)'e
110 .ds Ae A\h'-(\w'A'u*4/10)'E
111 .    \" corrections for vroff
112 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
113 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
114 .    \" for low resolution devices (crt and lpr)
115 .if \n(.H>23 .if \n(.V>19 \
116 \{\
117 .    ds : e
118 .    ds 8 ss
119 .    ds o a
120 .    ds d- d\h'-1'\(ga
121 .    ds D- D\h'-1'\(hy
122 .    ds th \o'bp'
123 .    ds Th \o'LP'
124 .    ds ae ae
125 .    ds Ae AE
126 .\}
127 .rm #[ #] #H #V #F C
128 .\" ========================================================================
129 .\"
130 .IX Title "READELF 1"
131 .TH READELF 1 "2004-04-09" "binutils-2.14.91" "GNU Development Tools"
132 .SH "NAME"
133 readelf \- Displays information about ELF files.
134 .SH "SYNOPSIS"
135 .IX Header "SYNOPSIS"
136 readelf [\fB\-a\fR|\fB\-\-all\fR] 
137         [\fB\-h\fR|\fB\-\-file\-header\fR]
138         [\fB\-l\fR|\fB\-\-program\-headers\fR|\fB\-\-segments\fR]
139         [\fB\-S\fR|\fB\-\-section\-headers\fR|\fB\-\-sections\fR]
140         [\fB\-e\fR|\fB\-\-headers\fR]
141         [\fB\-s\fR|\fB\-\-syms\fR|\fB\-\-symbols\fR]
142         [\fB\-n\fR|\fB\-\-notes\fR]
143         [\fB\-r\fR|\fB\-\-relocs\fR]
144         [\fB\-u\fR|\fB\-\-unwind\fR]
145         [\fB\-d\fR|\fB\-\-dynamic\fR]
146         [\fB\-V\fR|\fB\-\-version\-info\fR]
147         [\fB\-A\fR|\fB\-\-arch\-specific\fR]
148         [\fB\-D\fR|\fB\-\-use\-dynamic\fR]
149         [\fB\-x\fR <number>|\fB\-\-hex\-dump=\fR<number>]
150         [\fB\-w[liaprmfFso]\fR|
151          \fB\-\-debug\-dump\fR[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames\-interp,=str,=loc]]
152         [\fB\-I\fR|\fB\-histogram\fR]
153         [\fB\-v\fR|\fB\-\-version\fR]
154         [\fB\-W\fR|\fB\-\-wide\fR]
155         [\fB\-H\fR|\fB\-\-help\fR]
156         \fIelffile\fR...
157 .SH "DESCRIPTION"
158 .IX Header "DESCRIPTION"
159 \&\fBreadelf\fR displays information about one or more \s-1ELF\s0 format object
160 files.  The options control what particular information to display.
161 .PP
162 \&\fIelffile\fR... are the object files to be examined.  32\-bit and
163 64\-bit \s-1ELF\s0 files are supported, as are archives containing \s-1ELF\s0 files.
164 .PP
165 This program performs a similar function to \fBobjdump\fR but it
166 goes into more detail and it exists independently of the \s-1BFD\s0
167 library, so if there is a bug in \s-1BFD\s0 then readelf will not be
168 affected.
169 .SH "OPTIONS"
170 .IX Header "OPTIONS"
171 The long and short forms of options, shown here as alternatives, are
172 equivalent.  At least one option besides \fB\-v\fR or \fB\-H\fR must be
173 given. 
174 .IP "\fB\-a\fR" 4
175 .IX Item "-a"
176 .PD 0
177 .IP "\fB\-\-all\fR" 4
178 .IX Item "--all"
179 .PD
180 Equivalent to specifiying \fB\-\-file\-header\fR,
181 \&\fB\-\-program\-headers\fR, \fB\-\-sections\fR, \fB\-\-symbols\fR,
182 \&\fB\-\-relocs\fR, \fB\-\-dynamic\fR, \fB\-\-notes\fR and
183 \&\fB\-\-version\-info\fR. 
184 .IP "\fB\-h\fR" 4
185 .IX Item "-h"
186 .PD 0
187 .IP "\fB\-\-file\-header\fR" 4
188 .IX Item "--file-header"
189 .PD
190 Displays the information contained in the \s-1ELF\s0 header at the start of the
191 file.
192 .IP "\fB\-l\fR" 4
193 .IX Item "-l"
194 .PD 0
195 .IP "\fB\-\-program\-headers\fR" 4
196 .IX Item "--program-headers"
197 .IP "\fB\-\-segments\fR" 4
198 .IX Item "--segments"
199 .PD
200 Displays the information contained in the file's segment headers, if it
201 has any.
202 .IP "\fB\-S\fR" 4
203 .IX Item "-S"
204 .PD 0
205 .IP "\fB\-\-sections\fR" 4
206 .IX Item "--sections"
207 .IP "\fB\-\-section\-headers\fR" 4
208 .IX Item "--section-headers"
209 .PD
210 Displays the information contained in the file's section headers, if it
211 has any.
212 .IP "\fB\-s\fR" 4
213 .IX Item "-s"
214 .PD 0
215 .IP "\fB\-\-symbols\fR" 4
216 .IX Item "--symbols"
217 .IP "\fB\-\-syms\fR" 4
218 .IX Item "--syms"
219 .PD
220 Displays the entries in symbol table section of the file, if it has one.
221 .IP "\fB\-e\fR" 4
222 .IX Item "-e"
223 .PD 0
224 .IP "\fB\-\-headers\fR" 4
225 .IX Item "--headers"
226 .PD
227 Display all the headers in the file.  Equivalent to \fB\-h \-l \-S\fR.
228 .IP "\fB\-n\fR" 4
229 .IX Item "-n"
230 .PD 0
231 .IP "\fB\-\-notes\fR" 4
232 .IX Item "--notes"
233 .PD
234 Displays the contents of the \s-1NOTE\s0 segment, if it exists.
235 .IP "\fB\-r\fR" 4
236 .IX Item "-r"
237 .PD 0
238 .IP "\fB\-\-relocs\fR" 4
239 .IX Item "--relocs"
240 .PD
241 Displays the contents of the file's relocation section, if it has one.
242 .IP "\fB\-u\fR" 4
243 .IX Item "-u"
244 .PD 0
245 .IP "\fB\-\-unwind\fR" 4
246 .IX Item "--unwind"
247 .PD
248 Displays the contents of the file's unwind section, if it has one.  Only
249 the unwind sections for \s-1IA64\s0 \s-1ELF\s0 files are currently supported.
250 .IP "\fB\-d\fR" 4
251 .IX Item "-d"
252 .PD 0
253 .IP "\fB\-\-dynamic\fR" 4
254 .IX Item "--dynamic"
255 .PD
256 Displays the contents of the file's dynamic section, if it has one.
257 .IP "\fB\-V\fR" 4
258 .IX Item "-V"
259 .PD 0
260 .IP "\fB\-\-version\-info\fR" 4
261 .IX Item "--version-info"
262 .PD
263 Displays the contents of the version sections in the file, it they
264 exist.
265 .IP "\fB\-A\fR" 4
266 .IX Item "-A"
267 .PD 0
268 .IP "\fB\-\-arch\-specific\fR" 4
269 .IX Item "--arch-specific"
270 .PD
271 Displays architecture-specific information in the file, if there
272 is any.
273 .IP "\fB\-D\fR" 4
274 .IX Item "-D"
275 .PD 0
276 .IP "\fB\-\-use\-dynamic\fR" 4
277 .IX Item "--use-dynamic"
278 .PD
279 When displaying symbols, this option makes \fBreadelf\fR use the
280 symbol table in the file's dynamic section, rather than the one in the
281 symbols section.
282 .IP "\fB\-x <number>\fR" 4
283 .IX Item "-x <number>"
284 .PD 0
285 .IP "\fB\-\-hex\-dump=<number>\fR" 4
286 .IX Item "--hex-dump=<number>"
287 .PD
288 Displays the contents of the indicated section as a hexadecimal dump.
289 .IP "\fB\-w[liaprmfFso]\fR" 4
290 .IX Item "-w[liaprmfFso]"
291 .PD 0
292 .IP "\fB\-\-debug\-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames\-interp,=str,=loc]\fR" 4
293 .IX Item "--debug-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames-interp,=str,=loc]"
294 .PD
295 Displays the contents of the debug sections in the file, if any are
296 present.  If one of the optional letters or words follows the switch
297 then only data found in those specific sections will be dumped.
298 .IP "\fB\-I\fR" 4
299 .IX Item "-I"
300 .PD 0
301 .IP "\fB\-\-histogram\fR" 4
302 .IX Item "--histogram"
303 .PD
304 Display a histogram of bucket list lengths when displaying the contents
305 of the symbol tables.
306 .IP "\fB\-v\fR" 4
307 .IX Item "-v"
308 .PD 0
309 .IP "\fB\-\-version\fR" 4
310 .IX Item "--version"
311 .PD
312 Display the version number of readelf.
313 .IP "\fB\-W\fR" 4
314 .IX Item "-W"
315 .PD 0
316 .IP "\fB\-\-wide\fR" 4
317 .IX Item "--wide"
318 .PD
319 Don't break output lines to fit into 80 columns. By default
320 \&\fBreadelf\fR breaks section header and segment listing lines for
321 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
322 \&\fBreadelf\fR to print each section header resp. each segment one a
323 single line, which is far more readable on terminals wider than 80 columns.
324 .IP "\fB\-H\fR" 4
325 .IX Item "-H"
326 .PD 0
327 .IP "\fB\-\-help\fR" 4
328 .IX Item "--help"
329 .PD
330 Display the command line options understood by \fBreadelf\fR.
331 .SH "SEE ALSO"
332 .IX Header "SEE ALSO"
333 \&\fIobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
334 .SH "COPYRIGHT"
335 .IX Header "COPYRIGHT"
336 Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000,
337 2001, 2002, 2003 Free Software Foundation, Inc.
338 .PP
339 Permission is granted to copy, distribute and/or modify this document
340 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1
341 or any later version published by the Free Software Foundation;
342 with no Invariant Sections, with no Front-Cover Texts, and with no
343 Back-Cover Texts.  A copy of the license is included in the
344 section entitled ``\s-1GNU\s0 Free Documentation License''.