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