libelf.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <seglistitem>
  49. <seg>
  50. libelf.so
  51. </seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. </sect2>
  55. </sect1>