1EU-READELF(1) General Commands Manual EU-READELF(1)
2
3
4
6 eu-readelf - Displays information about ELF files.
7
9 eu-readelf [-a|--all]
10 [-h|--file-header]
11 [-l|--program-headers|--segments]
12 [-S|--section-headers|--sections]
13 [-g|--section-groups]
14 [-e|--exception]
15 [-s|--symbols] [section name] ]
16 [--dyn-syms]
17 [-n|--notes [section name] ]
18 [-r|--relocs]
19 [-d|--dynamic]
20 [-V|--version-info]
21 [-A|--arch-specific]
22 [-x <number or name>|--hex-dump=<number or name>]
23 [-p <number or name>|--string-dump=<number or name>]
24 [-z|--decompress]
25 [-c|--archive-index]
26 [--dwarf-skeleton <file> ]
27 [--elf-section [section] ]
28 [-w|
29 --debug-dump[=line,=decodedline,=info,=info+,=abbrev,=pubnames,=aranges,=macro,=frames,=str,=loc,=ranges,=gdb_index,=addr]]
30 [-I|--histogram]
31 [-v|--version]
32 [-W|--wide]
33 [-H|--help]
34 elffile...
35
37 eu-readelf displays information about one or more ELF format object
38 files. The options control what particular information to display.
39
40 elffile... are the object files to be examined. 32-bit and 64-bit ELF
41 files are supported, as are archives containing ELF files.
42
43 This program performs a similar function to objdump but it goes into
44 more detail and it exists independently of the BFD library, so if there
45 is a bug in BFD then readelf will not be affected.
46
48 The long and short forms of options, shown here as alternatives, are
49 equivalent. At least one option in addition to -v or -H must be given.
50
51 ELF Input Selection
52 --dwarf-skeleton <file>
53 Used with -w to find the skeleton Compile Units in FILE associated
54 with the Split Compile units in a .dwo input file.
55
56 --elf-section [section]
57 Use the named SECTION (default .gnu_debugdata) as (compressed) ELF
58 input data
59
60 ELF Output Selection
61 -a
62 --all
63 Equivalent to specifying --file-header, --program-headers,
64 --sections, --symbols, --relocs, --dynamic, --notes,
65 --version-info, --arch-specific, --section-groups and --histogram.
66
67
68 -h
69 --file-header
70 Displays the information contained in the ELF header at the start
71 of the file.
72
73 -l
74 --program-headers
75 --segments
76 Displays the information contained in the file's segment headers,
77 if it has any.
78
79 -S
80 --sections
81 --section-headers
82 Displays the information contained in the file's section headers,
83 if it has any.
84
85 -g
86 --section-groups
87 Displays the information contained in the file's section groups, if
88 it has any.
89
90 -I
91 --histogram
92 Display a histogram of bucket list lengths when displaying the
93 contents of the symbol tables.
94
95 -s
96 --symbols [section name]
97 Displays the entries in symbol table section of the file, if it has
98 one. If a symbol has version information associated with it then
99 this is displayed as well. The version string is displayed as a
100 suffix to the symbol name, preceded by an @ character. For example
101 foo@VER_1. If the version is the default version to be used when
102 resolving unversioned references to the symbol then it is displayed
103 as a suffix preceded by two @ characters. For example foo@@VER_2.
104
105 --dyn-syms
106 Display (only) the dynamic symbol table.
107
108 -e
109 --exception
110 Display sections for exception handling.
111
112 -n
113 --notes [section name]
114 Displays the contents of the NOTE segments and/or sections, if any.
115
116 -r
117 --relocs
118 Displays the contents of the file's relocation section, if it has
119 one.
120
121 -d
122 --dynamic
123 Displays the contents of the file's dynamic section, if it has one.
124
125 -V
126 --version-info
127 Displays the contents of the version sections in the file, it they
128 exist.
129
130 -A
131 --arch-specific
132 Displays architecture-specific information in the file, if there is
133 any.
134
135 Additional output selection
136 -x <name>
137 --hex-dump=<name>
138 Displays the contents of the indicated section name as a
139 hexadecimal bytes.
140
141 -w
142 --debug-dump[=decodedline,=info,=info+,=abbrev,=pubnames,=aranges,=macro,=frames,=str,=loc,=ranges,=gdb_index,=addr]
143 Displays the contents of the DWARF debug sections in the file, if
144 any are present. Compressed debug sections are automatically
145 decompressed (temporarily) before they are displayed. If one or
146 more of the optional letters or words follows the switch then only
147 those type(s) of data will be dumped. The letters and words refer
148 to the following information:
149 "=abbrev"
150 Displays the contents of the .debug_abbrev section.
151 "=addr"
152 Displays the contents of the .debug_addr section.
153 "=frames"
154 Display the raw contents of a .debug_frame section.
155 "=gdb_index"
156 Displays the contents of the .gdb_index and/or .debug_names
157 sections.
158 "=info"
159 Displays the contents of the .debug_info section.
160 "=info+"
161 Displays the contents of the .debug_info section, plus any
162 skeleton unit will be immediately followed by the corresponding
163 split compile unit (from the .dwo file). To show the
164 difference between "regular" CUs and split CUs print offsets
165 and references between { and } instead of [ and ].
166 "=decodedline"
167 Displays the interpreted contents of the .debug_line section.
168 "=macro"
169 Displays the contents of the .debug_macro and/or .debug_macinfo
170 sections.
171 "=loc"
172 Displays the contents of the .debug_loc and/or .debug_loclists
173 sections.
174 "=pubnames"
175 Displays the contents of the .debug_pubnames and/or
176 .debug_gnu_pubnames sections.
177 "=aranges"
178 Displays the contents of the .debug_aranges section.
179 "=ranges"
180 Displays the contents of the .debug_ranges and/or
181 .debug_rnglists sections.
182 "=str"
183 Displays the contents of the .debug_str, .debug_line_str and/or
184 .debug_str_offsets sections.
185
186 Note: displaying the contents of .debug_static_funcs,
187 .debug_static_vars and debug_weaknames sections is not
188 currently supported.
189 -p <number or name>
190 --string-dump=<number or name>
191 Displays the contents of the indicated section as printable
192 strings. A number identifies a particular section by index in
193 the section table; any other string identifies all sections
194 with that name in the object file.
195
196 -c
197 --archive-index
198 Displays the file symbol index information contained in the
199 header part of binary archives. Performs the same function as
200 the t command to ar, but without using the BFD library.
201
202 Output control
203 -z
204 --decompress
205 Requests that the section(s) being dumped by x, R or p options are
206 decompressed before being displayed. If the section(s) are not
207 compressed then they are displayed as is.
208
209 -v
210 --version
211 Display the version number of eu-readelf.
212
213 -W
214 --wide
215 Ignored for compatibility (lines always wide).
216
217 -H
218 --help
219 Display the command line options understood by eu-readelf.
220
221 @file
222 Read command-line options from file. The options read are inserted
223 in place of the original @file option. If file does not exist, or
224 cannot be read, then the option will be treated literally, and not
225 removed.
226
227 Options in file are separated by whitespace. A whitespace
228 character may be included in an option by surrounding the entire
229 option in either single or double quotes. Any character (including
230 a backslash) may be included by prefixing the character to be
231 included with a backslash. The file may itself contain additional
232 @file options; any such options will be processed recursively.
233
235 objdump(1), readelf(1) and the Info entries for binutils.
236
238 Copyright (c) 1991-2018 Free Software Foundation, Inc.
239
240 Copyright (c) 2019 Red Hat Inc.
241
242 Permission is granted to copy, distribute and/or modify this document
243 under the terms of the GNU Free Documentation License, Version 1.3 or
244 any later version published by the Free Software Foundation; with no
245 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
246 Texts. A copy of the license is included in the section entitled "GNU
247 Free Documentation License".
248
249
250
251elfutils 2019-Aug-20 EU-READELF(1)