[d489d4b] | 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 " ">
|
---|
[2e6887dd] | 10 | <!ENTITY elfutils-md5sum "e1b9847c9a6a1ad340de8d47a863ec52">
|
---|
| 11 | <!ENTITY elfutils-size "5.3 MB">
|
---|
| 12 | <!ENTITY elfutils-buildsize "94 MB (additional 3 MB for the tests)">
|
---|
| 13 | <!ENTITY elfutils-time "0.8 SBU (additional 0.2 SBU for the tests)">
|
---|
[d489d4b] | 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 set of utilities
|
---|
| 35 | and libraries for handling ELF (Executable and Linkable Format) files.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[863f350] | 38 | &lfs77_checked;
|
---|
[d489d4b] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&elfutils-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&elfutils-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &elfutils-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &elfutils-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &elfutils-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &elfutils-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <para condition="html" role="usernotes">
|
---|
| 75 | User Notes: <ulink url="&blfs-wiki;/elfutils"/>
|
---|
| 76 | </para>
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of elfutils</title>
|
---|
| 81 |
|
---|
| 82 | <para>
|
---|
| 83 | Install <application>elfutils</application> by running the following
|
---|
| 84 | commands:
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <!-- don't disable static libs, disable-static switch doesn't work anyways -->
|
---|
[c8a70a5] | 88 | <screen><userinput>sed -e '/*runp =/,+2d' \
|
---|
| 89 | -e '/runp +=/s/r.*;/*runp++ = '\0';/' \
|
---|
| 90 | -i libelf/elf_begin.c &&
|
---|
| 91 |
|
---|
| 92 | ./configure --prefix=/usr --program-prefix="eu-" &&
|
---|
[d489d4b] | 93 | make</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | <para>
|
---|
[59fb87e] | 96 | If you wish to run the test suite, first fix it to skip two failing tests:
|
---|
[8f1fc267] | 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput>sed -i '/srcdir/ iexit 77\n' \
|
---|
| 100 | tests/run-backtrace-native.sh \
|
---|
| 101 | tests/run-backtrace-native-core.sh</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>
|
---|
| 104 | To test the results, issue: <command>make check</command>.
|
---|
[d489d4b] | 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <para>
|
---|
| 108 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
[c8a70a5] | 119 | <command>sed ... libelf/elf_begin.c</command>: This command fixes a
|
---|
| 120 | potiential vulnerability identified upstream.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
[d489d4b] | 124 | <parameter>--program-prefix="eu-"</parameter>: This switch renames installed
|
---|
| 125 | programs to avoid conflict with <application>Binutils</application> programs
|
---|
| 126 | installed in LFS.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="content">
|
---|
| 132 | <title>Contents</title>
|
---|
| 133 |
|
---|
| 134 | <segmentedlist>
|
---|
| 135 | <segtitle>Installed Programs</segtitle>
|
---|
| 136 | <segtitle>Installed Libraries</segtitle>
|
---|
| 137 | <segtitle>Installed Directories</segtitle>
|
---|
| 138 |
|
---|
| 139 | <seglistitem>
|
---|
| 140 | <seg>
|
---|
| 141 | eu-addr2line, eu-ar, eu-elfcmp, eu-elflint, eu-findtextrel, eu-ld,
|
---|
| 142 | eu-make-debug-archive, eu-nm, eu-objdump, eu-ranlib, eu-readelf,
|
---|
[cb3beb52] | 143 | eu-size, eu-stack, eu-strings, eu-strip, and eu-unstrip
|
---|
[d489d4b] | 144 | </seg>
|
---|
| 145 | <seg>
|
---|
[c647e6d] | 146 | libasm.{a,so}, libdw.{a,so}, libebl.a, libelf.{a,so}, and
|
---|
| 147 | some for different architectures under /usr/lib/elfutils
|
---|
[d489d4b] | 148 | </seg>
|
---|
| 149 | <seg>
|
---|
| 150 | /usr/include/elfutils and
|
---|
| 151 | /usr/lib/elfutils
|
---|
| 152 | </seg>
|
---|
| 153 | </seglistitem>
|
---|
| 154 | </segmentedlist>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
| 158 | </sect1>
|
---|