summaryrefslogtreecommitdiffstats
path: root/archive/elfutils.xml
blob: 360da524c4978964fb773021b2ae6c5c004e2ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY elfutils-download-http
    "https://sourceware.org/ftp/elfutils/&elfutils-version;/elfutils-&elfutils-version;.tar.bz2">
  <!ENTITY elfutils-download-ftp  
     "ftp://sourceware.org/pub/elfutils/&elfutils-version;/elfutils-&elfutils-version;.tar.bz2">
  <!ENTITY elfutils-md5sum        "03599aee98c9b726c7a732a2dd0245d5">
  <!ENTITY elfutils-size          "8.0 MB">
  <!ENTITY elfutils-buildsize     "78 MB (with tests)">
  <!ENTITY elfutils-time          "0.9 SBU (with tests)">
]>

<sect1 id="elfutils" xreflabel="elfutils-&elfutils-version;">
  <?dbhtml filename="elfutils.html"?>

  <sect1info>
    <date>$Date$</date>
  </sect1info>

  <title>elfutils-&elfutils-version;</title>

  <indexterm zone="elfutils">
    <primary sortas="a-elfutils">elfutils</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to elfutils</title>

    <para>
      The <application>elfutils</application> package contains a set of
      utilities and libraries for handling ELF (Executable and Linkable Format)
      files.
    </para>

    &lfs81_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>
          Download (HTTP): <ulink url="&elfutils-download-http;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download (FTP): <ulink url="&elfutils-download-ftp;"/>
        </para>
      </listitem>
      <listitem>
        <para>
          Download MD5 sum: &elfutils-md5sum;
        </para>
      </listitem>
      <listitem>
        <para>
          Download size: &elfutils-size;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated disk space required: &elfutils-buildsize;
        </para>
      </listitem>
      <listitem>
        <para>
          Estimated build time: &elfutils-time;
        </para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">elfutils Dependencies</bridgehead>

    <bridgehead renderas="sect4">Optional</bridgehead>
    <para role="optional">
      <xref linkend="valgrind"/>
    </para>

    <para condition="html" role="usernotes">
      User Notes: <ulink url="&blfs-wiki;/elfutils"/>
    </para>
  </sect2>

  <sect2 role="installation">
    <title>Installation of elfutils</title>

    <para>
      Install <application>elfutils</application> by running the following
      commands:
    </para>

<!-- don't disable static libs, disable-static switch doesn't work anyways -->
<screen><userinput>./configure --prefix=/usr --program-prefix="eu-" &amp;&amp;
make</userinput></screen>
<!--
    <para>
      If you wish to run the test suite, first fix it to skip two failing tests:
    </para>

<screen><userinput>sed -i '/srcdir/ iexit 77\n'         \
       tests/run-backtrace-native.sh \
       tests/run-backtrace-native-core.sh</userinput></screen>-->

    <para>
       To test the results, issue: <command>make check</command>. 
       One test, run-strip-nothing.sh, is known to fail.
    </para>

    <para>
      Now, as the <systemitem class="username">root</systemitem> user:
    </para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <parameter>--program-prefix="eu-"</parameter>: This switch renames
      installed programs to avoid conflict with
      <application>Binutils</application> programs installed in LFS.
    </para>

    <para>
      <option>--enable-valgrind</option>: Run all tests under valgrind.
    </para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>
          eu-addr2line, eu-ar, eu-elfcmp, eu-elfcompress, eu-elflint,
          eu-findtextrel, eu-make-debug-archive, eu-nm, eu-objdump,
          eu-ranlib, eu-readelf, eu-size, eu-stack, eu-strings, eu-strip, and
          eu-unstrip
        </seg>
        <seg>
          libasm.{a,so}, libdw.{a,so}, libebl.a, libelf.{a,so}, and
          some for different architectures under /usr/lib/elfutils
        </seg>
        <seg>
          /usr/include/elfutils and
          /usr/lib/elfutils
        </seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="eu-addr2line">
        <term><command>eu-addr2line</command></term>
        <listitem>
          <para>
            converts addresses into file names and line numbers.
          </para>
          <indexterm zone="elfutils eu-addr2line">
            <primary sortas="b-eu-addr2line">eu-addr2line</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-ar">
        <term><command>eu-ar</command></term>
        <listitem>
          <para>
            creates, modifies, and extracts from archives.
          </para>
          <indexterm zone="elfutils eu-ar">
            <primary sortas="b-eu-ar">eu-ar</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-elfcmp">
        <term><command>eu-elfcmp</command></term>
        <listitem>
          <para>
            compares relevant parts of two ELF files for equality.
          </para>
          <indexterm zone="elfutils eu-elfcmp">
            <primary sortas="b-eu-elfcmp">eu-elfcmp</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-elfcompress">
        <term><command>eu-elfcompress</command></term>
        <listitem>
          <para>
            compresses or decompresses sections in an ELF file.
          </para>
          <indexterm zone="elfutils eu-elfcompress">
            <primary sortas="b-eu-elfcompress">eu-elfcompress</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-elflint">
        <term><command>eu-elflint</command></term>
        <listitem>
          <para>
            does pedantic checking of ELF files compliance with gABI/psABI spec.
          </para>
          <indexterm zone="elfutils eu-elflint">
            <primary sortas="b-eu-elflint">eu-elflint</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-findtextrel">
        <term><command>eu-findtextrel</command></term>
        <listitem>
          <para>
            locates the source of text relocations in FILEs (a.out by default).
          </para>
          <indexterm zone="elfutils eu-findtextrel">
            <primary sortas="b-eu-findtextrel">eu-findtextrel</primary>
          </indexterm>
        </listitem>
      </varlistentry>

<!--
      <varlistentry id="eu-ld">
        <term><command>eu-ld</command></term>
        <listitem>
          <para>
            combines object and archive files.
          </para>
          <indexterm zone="elfutils eu-ld">
            <primary sortas="b-eu-ld">eu-ld</primary>
          </indexterm>
        </listitem>
      </varlistentry>
-->

      <varlistentry id="eu-nm">
        <term><command>eu-nm</command></term>
        <listitem>
          <para>
            lists symbols from FILEs (a.out by default).
          </para>
          <indexterm zone="elfutils eu-nm">
            <primary sortas="b-eu-nm">eu-nm</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-objdump">
        <term><command>eu-objdump</command></term>
        <listitem>
          <para>
            shows information from FILEs (a.out by default).
          </para>
          <indexterm zone="elfutils eu-objdump">
            <primary sortas="b-eu-objdump">eu-objdump</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-ranlib">
        <term><command>eu-ranlib</command></term>
        <listitem>
          <para>
            generates an index to speed up access to archives.
          </para>
          <indexterm zone="elfutils eu-ranlib">
            <primary sortas="b-eu-ranlib">eu-ranlib</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-readelf">
        <term><command>eu-readelf</command></term>
        <listitem>
          <para>
            prints information from ELF files in human-readable form.
          </para>
          <indexterm zone="elfutils eu-readelf">
            <primary sortas="b-eu-readelf">eu-readelf</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-size">
        <term><command>eu-size</command></term>
        <listitem>
          <para>
            lists section sizes of FILEs (a.out by default).
          </para>
          <indexterm zone="elfutils eu-size">
            <primary sortas="b-eu-size">eu-size</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-stack">
        <term><command>eu-stack</command></term>
        <listitem>
          <para>
            prints a stack for each thread in a process or core file.
          </para>
          <indexterm zone="elfutils eu-stack">
            <primary sortas="b-eu-stack">eu-stack</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-strings">
        <term><command>eu-strings</command></term>
        <listitem>
          <para>
            prints the strings of printable characters in files.
          </para>
          <indexterm zone="elfutils eu-strings">
            <primary sortas="b-eu-strings">eu-strings</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-strip">
        <term><command>eu-strip</command></term>
        <listitem>
          <para>
            discards symbols from object files.
          </para>
          <indexterm zone="elfutils eu-strip">
            <primary sortas="b-eu-strip">eu-strip</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="eu-unstrip">
        <term><command>eu-unstrip</command></term>
        <listitem>
          <para>
            combines stripped files with separate symbols and debug information.
          </para>
          <indexterm zone="elfutils eu-unstrip">
            <primary sortas="b-eu-unstrip">eu-unstrip</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>