libelf.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. <sect1 id="ch-system-libelf" role="wrap">
  8. <?dbhtml filename="libelf.html"?>
  9. <sect1info condition="script">
  10. <productname>libelf</productname>
  11. <productnumber>&elfutils-version;</productnumber>
  12. <address>&elfutils-url;</address>
  13. </sect1info>
  14. <title>Libelf from Elfutils-&elfutils-version;</title>
  15. <indexterm zone="ch-system-libelf">
  16. <primary sortas="a-Libelf">Libelf</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Libelf is a library for handling ELF (Executable and Linkable Format)
  21. files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&elfutils-fin-sbu;</seg>
  27. <seg>&elfutils-fin-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Libelf</title>
  33. <para>Libelf is part of elfutils-&elfutils-version; package. Use
  34. the elfutils-&elfutils-version;.tar.bz2 as the source tarball.</para>
  35. <para>Prepare Libelf for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr \
  37. --disable-debuginfod \
  38. --enable-libdebuginfod=dummy \
  39. --libdir=/lib</userinput></screen>
  40. <para>Compile the package:</para>
  41. <screen><userinput remap="make">make</userinput></screen>
  42. <para>To test the results, issue:</para>
  43. <screen><userinput remap="test">make check</userinput></screen>
  44. <!-- <para>One test, run-elfclassify.sh, is known to fail.</para>-->
  45. <para>Install only Libelf:</para>
  46. <screen><userinput remap="install">make -C libelf install
  47. install -vm644 config/libelf.pc /usr/lib/pkgconfig
  48. rm /lib/libelf.a</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-elfutils" role="content">
  51. <title>Contents of Libelf</title>
  52. <segmentedlist>
  53. <segtitle>Installed Library</segtitle>
  54. <segtitle>Installed Directory</segtitle>
  55. <seglistitem>
  56. <seg>
  57. libelf.so (symlink) and libelf-&elfutils-version;.so
  58. </seg>
  59. <seg>
  60. /usr/include/elfutils
  61. </seg>
  62. </seglistitem>
  63. </segmentedlist>
  64. <variablelist>
  65. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="libelf">
  69. <term><filename class="libraryfile">libelf</filename></term>
  70. <listitem>
  71. <para>Contains API functions to handle ELF object files</para>
  72. <indexterm zone="ch-system-libelf libelf">
  73. <primary sortas="c-libelf">libelf</primary>
  74. </indexterm>
  75. </listitem>
  76. </varlistentry>
  77. </variablelist>
  78. </sect2>
  79. </sect1>