1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY elfutils-download-http
|
---|
8 | "https://fedorahosted.org/releases/e/l/elfutils/&elfutils-version;/elfutils-&elfutils-version;.tar.bz2">
|
---|
9 | <!ENTITY elfutils-download-ftp " ">
|
---|
10 | <!ENTITY elfutils-md5sum "2e4536c1c48034f188a80789a59114d8">
|
---|
11 | <!ENTITY elfutils-size "5.8 MB">
|
---|
12 | <!ENTITY elfutils-buildsize "103 MB (with tests)">
|
---|
13 | <!ENTITY elfutils-time "0.8 SBU (with tests)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="elfutils" xreflabel="elfutils-&elfutils-version;">
|
---|
17 | <?dbhtml filename="elfutils.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>elfutils-&elfutils-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="elfutils">
|
---|
27 | <primary sortas="a-elfutils">elfutils</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to elfutils</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | The <application>elfutils</application> package contains a set of
|
---|
35 | utilities and libraries for handling ELF (Executable and Linkable Format)
|
---|
36 | files.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs78_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&elfutils-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&elfutils-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &elfutils-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &elfutils-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &elfutils-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &elfutils-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">elfutils Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional">
|
---|
79 | <xref linkend="valgrind"/>
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <para condition="html" role="usernotes">
|
---|
83 | User Notes: <ulink url="&blfs-wiki;/elfutils"/>
|
---|
84 | </para>
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2 role="installation">
|
---|
88 | <title>Installation of elfutils</title>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | Install <application>elfutils</application> by running the following
|
---|
92 | commands:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <!-- don't disable static libs, disable-static switch doesn't work anyways -->
|
---|
96 | <screen><userinput>./configure --prefix=/usr --program-prefix="eu-" &&
|
---|
97 | make</userinput></screen>
|
---|
98 | <!--
|
---|
99 | <para>
|
---|
100 | If you wish to run the test suite, first fix it to skip two failing tests:
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <screen><userinput>sed -i '/srcdir/ iexit 77\n' \
|
---|
104 | tests/run-backtrace-native.sh \
|
---|
105 | tests/run-backtrace-native-core.sh</userinput></screen>-->
|
---|
106 |
|
---|
107 | <para>
|
---|
108 | To test the results, issue: <command>make check</command>.
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="commands">
|
---|
120 | <title>Command Explanations</title>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | <parameter>--program-prefix="eu-"</parameter>: This switch renames
|
---|
124 | installed programs to avoid conflict with
|
---|
125 | <application>Binutils</application> programs installed in LFS.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | <option>--enable-valgrind</option>: Run all tests under valgrind.
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | </sect2>
|
---|
133 |
|
---|
134 | <sect2 role="content">
|
---|
135 | <title>Contents</title>
|
---|
136 |
|
---|
137 | <segmentedlist>
|
---|
138 | <segtitle>Installed Programs</segtitle>
|
---|
139 | <segtitle>Installed Libraries</segtitle>
|
---|
140 | <segtitle>Installed Directories</segtitle>
|
---|
141 |
|
---|
142 | <seglistitem>
|
---|
143 | <seg>
|
---|
144 | eu-addr2line, eu-ar, eu-elfcmp, eu-elflint, eu-findtextrel, eu-ld,
|
---|
145 | eu-make-debug-archive, eu-nm, eu-objdump, eu-ranlib, eu-readelf,
|
---|
146 | eu-size, eu-stack, eu-strings, eu-strip, and eu-unstrip
|
---|
147 | </seg>
|
---|
148 | <seg>
|
---|
149 | libasm.{a,so}, libdw.{a,so}, libebl.a, libelf.{a,so}, and
|
---|
150 | some for different architectures under /usr/lib/elfutils
|
---|
151 | </seg>
|
---|
152 | <seg>
|
---|
153 | /usr/include/elfutils and
|
---|
154 | /usr/lib/elfutils
|
---|
155 | </seg>
|
---|
156 | </seglistitem>
|
---|
157 | </segmentedlist>
|
---|
158 |
|
---|
159 | <variablelist>
|
---|
160 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
161 | <?dbfo list-presentation="list"?>
|
---|
162 | <?dbhtml list-presentation="table"?>
|
---|
163 |
|
---|
164 | <varlistentry id="eu-addr2line">
|
---|
165 | <term><command>eu-addr2line</command></term>
|
---|
166 | <listitem>
|
---|
167 | <para>
|
---|
168 | convert addresses into file names and line numbers.
|
---|
169 | </para>
|
---|
170 | <indexterm zone="elfutils eu-addr2line">
|
---|
171 | <primary sortas="b-eu-addr2line">eu-addr2line</primary>
|
---|
172 | </indexterm>
|
---|
173 | </listitem>
|
---|
174 | </varlistentry>
|
---|
175 |
|
---|
176 | <varlistentry id="eu-ar">
|
---|
177 | <term><command>eu-ar</command></term>
|
---|
178 | <listitem>
|
---|
179 | <para>
|
---|
180 | create, modify, and extract from archives.
|
---|
181 | </para>
|
---|
182 | <indexterm zone="elfutils eu-ar">
|
---|
183 | <primary sortas="b-eu-ar">eu-ar</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | <varlistentry id="eu-elfcmp">
|
---|
189 | <term><command>eu-elfcmp</command></term>
|
---|
190 | <listitem>
|
---|
191 | <para>
|
---|
192 | compare relevant parts of two ELF files for equality.
|
---|
193 | </para>
|
---|
194 | <indexterm zone="elfutils eu-elfcmp">
|
---|
195 | <primary sortas="b-eu-elfcmp">eu-elfcmp</primary>
|
---|
196 | </indexterm>
|
---|
197 | </listitem>
|
---|
198 | </varlistentry>
|
---|
199 |
|
---|
200 | <varlistentry id="eu-elflint">
|
---|
201 | <term><command>eu-elflint</command></term>
|
---|
202 | <listitem>
|
---|
203 | <para>
|
---|
204 | pedantic checking of ELF files compliance with gABI/psABI spec.
|
---|
205 | </para>
|
---|
206 | <indexterm zone="elfutils eu-elflint">
|
---|
207 | <primary sortas="b-eu-elflint">eu-elflint</primary>
|
---|
208 | </indexterm>
|
---|
209 | </listitem>
|
---|
210 | </varlistentry>
|
---|
211 |
|
---|
212 | <varlistentry id="eu-findtextrel">
|
---|
213 | <term><command>eu-findtextrel</command></term>
|
---|
214 | <listitem>
|
---|
215 | <para>
|
---|
216 | locate source of text relocations in FILEs (a.out by default).
|
---|
217 | </para>
|
---|
218 | <indexterm zone="elfutils eu-findtextrel">
|
---|
219 | <primary sortas="b-eu-findtextrel">eu-findtextrel</primary>
|
---|
220 | </indexterm>
|
---|
221 | </listitem>
|
---|
222 | </varlistentry>
|
---|
223 |
|
---|
224 | <varlistentry id="eu-ld">
|
---|
225 | <term><command>eu-ld</command></term>
|
---|
226 | <listitem>
|
---|
227 | <para>
|
---|
228 | combine object and archive files.
|
---|
229 | </para>
|
---|
230 | <indexterm zone="elfutils eu-ld">
|
---|
231 | <primary sortas="b-eu-ld">eu-ld</primary>
|
---|
232 | </indexterm>
|
---|
233 | </listitem>
|
---|
234 | </varlistentry>
|
---|
235 |
|
---|
236 | <varlistentry id="eu-nm">
|
---|
237 | <term><command>eu-nm</command></term>
|
---|
238 | <listitem>
|
---|
239 | <para>
|
---|
240 | list symbols from FILEs (a.out by default).
|
---|
241 | </para>
|
---|
242 | <indexterm zone="elfutils eu-nm">
|
---|
243 | <primary sortas="b-eu-nm">eu-nm</primary>
|
---|
244 | </indexterm>
|
---|
245 | </listitem>
|
---|
246 | </varlistentry>
|
---|
247 |
|
---|
248 | <varlistentry id="eu-objdump">
|
---|
249 | <term><command>eu-objdump</command></term>
|
---|
250 | <listitem>
|
---|
251 | <para>
|
---|
252 | show information from FILEs (a.out by default).
|
---|
253 | </para>
|
---|
254 | <indexterm zone="elfutils eu-objdump">
|
---|
255 | <primary sortas="b-eu-objdump">eu-objdump</primary>
|
---|
256 | </indexterm>
|
---|
257 | </listitem>
|
---|
258 | </varlistentry>
|
---|
259 |
|
---|
260 | <varlistentry id="eu-ranlib">
|
---|
261 | <term><command>eu-ranlib</command></term>
|
---|
262 | <listitem>
|
---|
263 | <para>
|
---|
264 | generate an index to speed access to archives.
|
---|
265 | </para>
|
---|
266 | <indexterm zone="elfutils eu-ranlib">
|
---|
267 | <primary sortas="b-eu-ranlib">eu-ranlib</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="eu-readelf">
|
---|
273 | <term><command>eu-readelf</command></term>
|
---|
274 | <listitem>
|
---|
275 | <para>
|
---|
276 | print information from ELF file in human-readable form.
|
---|
277 | </para>
|
---|
278 | <indexterm zone="elfutils eu-readelf">
|
---|
279 | <primary sortas="b-eu-readelf">eu-readelf</primary>
|
---|
280 | </indexterm>
|
---|
281 | </listitem>
|
---|
282 | </varlistentry>
|
---|
283 |
|
---|
284 | <varlistentry id="eu-size">
|
---|
285 | <term><command>eu-size</command></term>
|
---|
286 | <listitem>
|
---|
287 | <para>
|
---|
288 | list section sizes of FILEs (a.out by default).
|
---|
289 | </para>
|
---|
290 | <indexterm zone="elfutils eu-size">
|
---|
291 | <primary sortas="b-eu-size">eu-size</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 |
|
---|
296 | <varlistentry id="eu-stack">
|
---|
297 | <term><command>eu-stack</command></term>
|
---|
298 | <listitem>
|
---|
299 | <para>
|
---|
300 | print a stack for each thread in a process or core file.
|
---|
301 | </para>
|
---|
302 | <indexterm zone="elfutils eu-stack">
|
---|
303 | <primary sortas="b-eu-stack">eu-stack</primary>
|
---|
304 | </indexterm>
|
---|
305 | </listitem>
|
---|
306 | </varlistentry>
|
---|
307 |
|
---|
308 | <varlistentry id="eu-strings">
|
---|
309 | <term><command>eu-strings</command></term>
|
---|
310 | <listitem>
|
---|
311 | <para>
|
---|
312 | print the strings of printable characters in files.
|
---|
313 | </para>
|
---|
314 | <indexterm zone="elfutils eu-strings">
|
---|
315 | <primary sortas="b-eu-strings">eu-strings</primary>
|
---|
316 | </indexterm>
|
---|
317 | </listitem>
|
---|
318 | </varlistentry>
|
---|
319 |
|
---|
320 | <varlistentry id="eu-strip">
|
---|
321 | <term><command>eu-strip</command></term>
|
---|
322 | <listitem>
|
---|
323 | <para>
|
---|
324 | discard symbols from object files.
|
---|
325 | </para>
|
---|
326 | <indexterm zone="elfutils eu-strip">
|
---|
327 | <primary sortas="b-eu-strip">eu-strip</primary>
|
---|
328 | </indexterm>
|
---|
329 | </listitem>
|
---|
330 | </varlistentry>
|
---|
331 |
|
---|
332 | <varlistentry id="eu-unstrip">
|
---|
333 | <term><command>eu-unstrip</command></term>
|
---|
334 | <listitem>
|
---|
335 | <para>
|
---|
336 | combine stripped files with separate symbols and debug information.
|
---|
337 | </para>
|
---|
338 | <indexterm zone="elfutils eu-unstrip">
|
---|
339 | <primary sortas="b-eu-unstrip">eu-unstrip</primary>
|
---|
340 | </indexterm>
|
---|
341 | </listitem>
|
---|
342 | </varlistentry>
|
---|
343 |
|
---|
344 | </variablelist>
|
---|
345 |
|
---|
346 | </sect2>
|
---|
347 |
|
---|
348 | </sect1>
|
---|