1READELF(1)                   GNU Development Tools                  READELF(1)
2
3
4

NAME

6       readelf - Displays information about ELF files.
7

SYNOPSIS

9       readelf [-a|--all]
10               [-h|--file-header]
11               [-l|--program-headers|--segments]
12               [-S|--section-headers|--sections]
13               [-g|--section-groups]
14               [-t|--section-details]
15               [-e|--headers]
16               [-s|--syms|--symbols]
17               [--dyn-syms]
18               [-n|--notes]
19               [-r|--relocs]
20               [-u|--unwind]
21               [-d|--dynamic]
22               [-V|--version-info]
23               [-A|--arch-specific]
24               [-D|--use-dynamic]
25               [-x <number or name>|--hex-dump=<number or name>]
26               [-p <number or name>|--string-dump=<number or name>]
27               [-R <number or name>|--relocated-dump=<number or name>]
28               [-c|--archive-index]
29               [-w[lLiaprmfFsoRt]|
30                --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges]]
31               [-I|--histogram]
32               [-v|--version]
33               [-W|--wide]
34               [-H|--help]
35               elffile...
36

DESCRIPTION

38       readelf displays information about one or more ELF format object files.
39       The options control what particular information to display.
40
41       elffile... are the object files to be examined.  32-bit and 64-bit ELF
42       files are supported, as are archives containing ELF files.
43
44       This program performs a similar function to objdump but it goes into
45       more detail and it exists independently of the BFD library, so if there
46       is a bug in BFD then readelf will not be affected.
47

OPTIONS

49       The long and short forms of options, shown here as alternatives, are
50       equivalent.  At least one option besides -v or -H must be given.
51
52       -a
53       --all
54           Equivalent to specifying --file-header, --program-headers,
55           --sections, --symbols, --relocs, --dynamic, --notes and
56           --version-info.
57
58       -h
59       --file-header
60           Displays the information contained in the ELF header at the start
61           of the file.
62
63       -l
64       --program-headers
65       --segments
66           Displays the information contained in the file's segment headers,
67           if it has any.
68
69       -S
70       --sections
71       --section-headers
72           Displays the information contained in the file's section headers,
73           if it has any.
74
75       -g
76       --section-groups
77           Displays the information contained in the file's section groups, if
78           it has any.
79
80       -t
81       --section-details
82           Displays the detailed section information. Implies -S.
83
84       -s
85       --symbols
86       --syms
87           Displays the entries in symbol table section of the file, if it has
88           one.
89
90       --dyn-syms
91           Displays the entries in dynamic symbol table section of the file,
92           if it has one.
93
94       -e
95       --headers
96           Display all the headers in the file.  Equivalent to -h -l -S.
97
98       -n
99       --notes
100           Displays the contents of the NOTE segments and/or sections, if any.
101
102       -r
103       --relocs
104           Displays the contents of the file's relocation section, if it has
105           one.
106
107       -u
108       --unwind
109           Displays the contents of the file's unwind section, if it has one.
110           Only the unwind sections for IA64 ELF files, as well as ARM unwind
111           tables (".ARM.exidx" / ".ARM.extab") are currently supported.
112
113       -d
114       --dynamic
115           Displays the contents of the file's dynamic section, if it has one.
116
117       -V
118       --version-info
119           Displays the contents of the version sections in the file, it they
120           exist.
121
122       -A
123       --arch-specific
124           Displays architecture-specific information in the file, if there is
125           any.
126
127       -D
128       --use-dynamic
129           When displaying symbols, this option makes readelf use the symbol
130           hash tables in the file's dynamic section, rather than the symbol
131           table sections.
132
133       -x <number or name>
134       --hex-dump=<number or name>
135           Displays the contents of the indicated section as a hexadecimal
136           bytes.  A number identifies a particular section by index in the
137           section table; any other string identifies all sections with that
138           name in the object file.
139
140       -R <number or name>
141       --relocated-dump=<number or name>
142           Displays the contents of the indicated section as a hexadecimal
143           bytes.  A number identifies a particular section by index in the
144           section table; any other string identifies all sections with that
145           name in the object file.  The contents of the section will be
146           relocated before they are displayed.
147
148       -p <number or name>
149       --string-dump=<number or name>
150           Displays the contents of the indicated section as printable
151           strings.  A number identifies a particular section by index in the
152           section table; any other string identifies all sections with that
153           name in the object file.
154
155       -c
156       --archive-index
157           Displays the file symbol index infomation contained in the header
158           part of binary archives.  Performs the same function as the t
159           command to ar, but without using the BFD library.
160
161       -w[lLiaprmfFsoRt]
162       --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges]
163           Displays the contents of the debug sections in the file, if any are
164           present.  If one of the optional letters or words follows the
165           switch then only data found in those specific sections will be
166           dumped.
167
168           Note that there is no single letter option to display the content
169           of trace sections.
170
171           Note: the =decodedline option will display the interpreted contents
172           of a .debug_line section whereas the =rawline option dumps the
173           contents in a raw format.
174
175           Note: the =frames-interp option will display the interpreted
176           contents of a .debug_frame section whereas the =frames option dumps
177           the contents in a raw format.
178
179       -I
180       --histogram
181           Display a histogram of bucket list lengths when displaying the
182           contents of the symbol tables.
183
184       -v
185       --version
186           Display the version number of readelf.
187
188       -W
189       --wide
190           Don't break output lines to fit into 80 columns. By default readelf
191           breaks section header and segment listing lines for 64-bit ELF
192           files, so that they fit into 80 columns. This option causes readelf
193           to print each section header resp. each segment one a single line,
194           which is far more readable on terminals wider than 80 columns.
195
196       -H
197       --help
198           Display the command line options understood by readelf.
199
200       @file
201           Read command-line options from file.  The options read are inserted
202           in place of the original @file option.  If file does not exist, or
203           cannot be read, then the option will be treated literally, and not
204           removed.
205
206           Options in file are separated by whitespace.  A whitespace
207           character may be included in an option by surrounding the entire
208           option in either single or double quotes.  Any character (including
209           a backslash) may be included by prefixing the character to be
210           included with a backslash.  The file may itself contain additional
211           @file options; any such options will be processed recursively.
212

SEE ALSO

214       objdump(1), and the Info entries for binutils.
215
217       Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
218       2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
219       Software Foundation, Inc.
220
221       Permission is granted to copy, distribute and/or modify this document
222       under the terms of the GNU Free Documentation License, Version 1.3 or
223       any later version published by the Free Software Foundation; with no
224       Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
225       Texts.  A copy of the license is included in the section entitled "GNU
226       Free Documentation License".
227
228
229
230binutils-2.21                     2010-12-08                        READELF(1)
Impressum