libelf.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="UTF-8"?>
  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 &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 是一个处理 ELF (可执行和可链接格式)文件的库。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&elfutils-ch6-sbu;</seg>
  26. <seg>&elfutils-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Libelf</title>
  32. <para>Libelf 是 elfutils-&elfutils-version; 软件包的一部分,
  33. 使用 elfutils-&elfutils-version;.tar.xz 作为源代码包。</para>
  34. <para>准备安装 Libelf:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>编译该软件包:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>执行 <command>make check</command> 以测试编译结果。</para>
  39. <para>只安装 Libelf:</para>
  40. <screen><userinput remap="install">make -C libelf install
  41. install -vm644 config/libelf.pc /usr/lib/pkgconfig</userinput></screen>
  42. </sect2>
  43. <sect2 id="contents-elfutils" role="content">
  44. <title>Libelf 的内容</title>
  45. <segmentedlist>
  46. <segtitle>安装的库</segtitle>
  47. <seglistitem>
  48. <seg>
  49. libelf.so
  50. </seg>
  51. </seglistitem>
  52. </segmentedlist>
  53. </sect2>
  54. </sect1>