version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
READELF |
|
|
2 |
!!!READELF |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
COPYRIGHT |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
readelf - Displays information about ELF files. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
readelf [[__-a--all__] [[__-h--file-header__] |
|
|
18 |
[[__-l--program-headers--segments__] |
|
|
19 |
[[__-S--section-headers--sections__] [[__-e--headers__] |
|
|
20 |
[[__-s--syms--symbols__] [[__-n--notes__] |
|
|
21 |
[[__-r--relocs__] [[__-u--unwind__] [[__-d--dynamic__] |
|
|
22 |
[[__-V--version-info__] [[__-D--use-dynamic__] |
|
|
23 |
[[__-x__ __--hex-dump=__ |
|
|
24 |
__-w[[liaprmfs]--debug-dump__[[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=str]] |
|
|
25 |
[[__-histogram__] [[__-v--version__] [[__-W--wide__] |
|
|
26 |
[[__-H--help__] ''elffile''... |
|
|
27 |
!!DESCRIPTION |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
__readelf__ displays information about one or more |
|
|
31 |
ELF format object files. The options control |
|
|
32 |
what particular information to display. |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
''elffile''... are the object files to be examined. At |
|
|
36 |
the moment, __readelf__ does not support examining |
|
|
37 |
archives, nor does it support examing 64 bit |
|
|
38 |
ELF files. |
|
|
39 |
!!OPTIONS |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
The long and short forms of options, shown here as |
|
|
43 |
alternatives, are equivalent. At least one option besides |
|
|
44 |
__-v__ or __-H__ must be given. |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
__-a__ |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
__--all__ |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
Equivalent to specifiying __--file-header__, |
|
|
54 |
__--program-headers__, __--sections__, |
|
|
55 |
__--symbols__, __--relocs__, __--dynamic__, |
|
|
56 |
__--notes__ and __--version-info__. |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
__-h__ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
__--file-header__ |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
Displays the information contained in the ELF |
|
|
66 |
header at the start of the file. |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
__-l__ |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__--program-headers__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
__--segments__ |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
Displays the information contained in the file's segment |
|
|
79 |
headers, if it has any. |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
__-S__ |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
__--sections__ |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
__--section-headers__ |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
Displays the information contained in the file's section |
|
|
92 |
headers, if it has any. |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__-s__ |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
__--symbols__ |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
__--syms__ |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
Displays the entries in symbol table section of the file, if |
|
|
105 |
it has one. |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
__-e__ |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
__--headers__ |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
Display all the headers in the file. Equivalent to __-h -l |
|
|
115 |
-S__. |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
__-n__ |
|
|
119 |
|
|
|
120 |
|
|
|
121 |
__--notes__ |
|
|
122 |
|
|
|
123 |
|
|
|
124 |
Displays the contents of the NOTE segment, if |
|
|
125 |
it exists. |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
__-r__ |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
__--relocs__ |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
Displays the contents of the file's relocation section, if |
|
|
135 |
it has one. |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
__-u__ |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
__--unwind__ |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
Displays the contents of the file's unwind section, if it |
|
|
145 |
has one. Only the unwind sections for IA64 |
|
|
146 |
ELF files are currently supported. |
|
|
147 |
|
|
|
148 |
|
|
|
149 |
__-d__ |
|
|
150 |
|
|
|
151 |
|
|
|
152 |
__--dynamic__ |
|
|
153 |
|
|
|
154 |
|
|
|
155 |
Displays the contents of the file's dynamic section, if it |
|
|
156 |
has one. |
|
|
157 |
|
|
|
158 |
|
|
|
159 |
__-V__ |
|
|
160 |
|
|
|
161 |
|
|
|
162 |
__--version-info__ |
|
|
163 |
|
|
|
164 |
|
|
|
165 |
Displays the contents of the version sections in the file, |
|
|
166 |
it they exist. |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
__-D__ |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
__--use-dynamic__ |
|
|
173 |
|
|
|
174 |
|
|
|
175 |
When displaying symbols, this option makes __readelf__ |
|
|
176 |
use the symbol table in the file's dynamic section, rather |
|
|
177 |
than the one in the symbols section. |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
__-x __ |
|
|
181 |
|
|
|
182 |
|
|
|
183 |
__--hex-dump=__ |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
Displays the contents of the indicated section as a |
|
|
187 |
hexadecimal dump. |
|
|
188 |
|
|
|
189 |
|
|
|
190 |
__-w[[liaprmfs]__ |
|
|
191 |
|
|
|
192 |
|
|
|
193 |
__--debug-dump[[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=str]__ |
|
|
194 |
|
|
|
195 |
|
|
|
196 |
Displays the contents of the debug sections in the file, if |
|
|
197 |
any are present. If one of the optional letters or words |
|
|
198 |
follows the switch then only data found in those specific |
|
|
199 |
sections will be dumped. |
|
|
200 |
|
|
|
201 |
|
|
|
202 |
__--histogram__ |
|
|
203 |
|
|
|
204 |
|
|
|
205 |
Display a histogram of bucket list lengths when displaying |
|
|
206 |
the contents of the symbol tables. |
|
|
207 |
|
|
|
208 |
|
|
|
209 |
__-v__ |
|
|
210 |
|
|
|
211 |
|
|
|
212 |
__--version__ |
|
|
213 |
|
|
|
214 |
|
|
|
215 |
Display the version number of readelf. |
|
|
216 |
|
|
|
217 |
|
|
|
218 |
__-W__ |
|
|
219 |
|
|
|
220 |
|
|
|
221 |
__--wide__ |
|
|
222 |
|
|
|
223 |
|
|
|
224 |
Don't break output lines to fit into 80 columns. By default |
|
|
225 |
__readelf__ breaks section header and segment listing |
|
|
226 |
lines for 64-bit ELF files, so that they fit |
|
|
227 |
into 80 columns. This option causes __readelf__ to print |
|
|
228 |
each section header resp. each segment one a single line, |
|
|
229 |
which is far more readable on terminals wider than 80 |
|
|
230 |
columns. |
|
|
231 |
|
|
|
232 |
|
|
|
233 |
__-H__ |
|
|
234 |
|
|
|
235 |
|
|
|
236 |
__--help__ |
|
|
237 |
|
|
|
238 |
|
|
|
239 |
Display the command line options understood by |
|
|
240 |
__readelf__. |
|
|
241 |
!!SEE ALSO |
|
|
242 |
|
|
|
243 |
|
|
|
244 |
objdump(1), and the Info entries for |
|
|
245 |
''binutils''. |
|
|
246 |
!!COPYRIGHT |
|
|
247 |
|
|
|
248 |
|
|
|
249 |
Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, |
|
|
250 |
2001, 2002 Free Software Foundation, Inc. |
|
|
251 |
|
|
|
252 |
|
|
|
253 |
Permission is granted to copy, distribute and/or modify this |
|
|
254 |
document under the terms of the GNU Free |
|
|
255 |
Documentation License, Version 1.1 or any later version |
|
|
256 |
published by the Free Software Foundation; with no Invariant |
|
|
257 |
Sections, with no Front-Cover Texts, and with no Back-Cover |
|
|
258 |
Texts. A copy of the license is included in the section |
|
|
259 |
entitled `` GNU Free Documentation |
|
|
260 |
License''. |
|
|
261 |
---- |