2018-01-12 17:28:42 +00:00
|
|
|
<?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;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="ch-system-libelf" role="wrap">
|
2018-01-13 05:43:45 +00:00
|
|
|
<?dbhtml filename="libelf.html"?>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
2018-01-13 05:43:45 +00:00
|
|
|
<productname>libelf</productname>
|
2018-01-12 17:28:42 +00:00
|
|
|
<productnumber>&elfutils-version;</productnumber>
|
|
|
|
<address>&elfutils-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2018-09-20 18:02:36 +01:00
|
|
|
<title>Libelf from Elfutils-&elfutils-version;</title>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
<indexterm zone="ch-system-libelf">
|
|
|
|
<primary sortas="a-Libelf">Libelf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
|
|
|
|
|
|
|
<para>Libelf is a library for handling ELF (Executable and Linkable Format)
|
|
|
|
files.</para>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&elfutils-fin-sbu;</seg>
|
|
|
|
<seg>&elfutils-fin-du;</seg>
|
2018-01-12 17:28:42 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Libelf</title>
|
|
|
|
|
|
|
|
<para>Libelf is part of elfutils-&elfutils-version; package. Use
|
2018-09-04 18:12:25 +01:00
|
|
|
the elfutils-&elfutils-version;.tar.bz2 as the source tarball.</para>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
<para>Prepare Libelf for compilation:</para>
|
|
|
|
|
2020-07-07 16:22:39 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --disable-debuginfod --libdir=/lib</userinput></screen>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
2018-06-25 20:20:39 +01:00
|
|
|
<para>To test the results, issue:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
2020-06-04 07:51:00 +01:00
|
|
|
<!-- <para>One test, run-elfclassify.sh, is known to fail.</para>-->
|
2019-12-01 18:01:37 +00:00
|
|
|
|
2018-01-13 05:43:45 +00:00
|
|
|
<para>Install only Libelf:</para>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
2018-01-13 05:43:45 +00:00
|
|
|
<screen><userinput remap="install">make -C libelf install
|
2019-12-01 18:01:37 +00:00
|
|
|
install -vm644 config/libelf.pc /usr/lib/pkgconfig
|
2020-07-07 16:22:39 +01:00
|
|
|
rm /lib/libelf.a</userinput></screen>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-elfutils" role="content">
|
|
|
|
<title>Contents of Libelf</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2019-03-13 17:58:54 +00:00
|
|
|
<segtitle>Installed Directory</segtitle>
|
2018-01-12 17:28:42 +00:00
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
libelf.so
|
|
|
|
</seg>
|
2019-03-13 17:58:54 +00:00
|
|
|
<seg>
|
|
|
|
/usr/include/elfutils
|
|
|
|
</seg>
|
2018-01-12 17:28:42 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|