libelf.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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>Elfutils-&elfutils-version; 中的 Libelf</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.bz2 作为源代码包。</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>执行下列命令以测试编译结果:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <para>只安装 Libelf:</para>
  41. <screen><userinput remap="install">make -C libelf install
  42. install -vm644 config/libelf.pc /usr/lib/pkgconfig</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-elfutils" role="content">
  45. <title>Libelf 的内容</title>
  46. <segmentedlist>
  47. <segtitle>安装的库</segtitle>
  48. <segtitle>安装的目录</segtitle>
  49. <seglistitem>
  50. <seg>
  51. libelf.so
  52. </seg>
  53. <seg>
  54. /usr/include/elfutils
  55. </seg>
  56. </seglistitem>
  57. </segmentedlist>
  58. </sect2>
  59. </sect1>