binutils-pass2.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-binutils-pass2" role="wrap">
  7. <title>Binutils-&binutils-version; - Pass 2</title>
  8. <?dbhtml filename="binutils-pass2.html"?>
  9. <indexterm zone="ch-tools-binutils-pass2">
  10. <primary sortas="a-Binutils">Binutils</primary>
  11. <secondary>tools, pass 2</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem>
  17. </segmentedlist>
  18. </sect2>
  19. <sect2 role="installation">
  20. <title>Re-installation of Binutils</title>
  21. <para>The current version of Binutils in use has a bug that causes strip to
  22. remove necessary information from certain library files. This patch fixes
  23. the problem:</para>
  24. <screen><userinput>patch -Np1 -i ../binutils-&binutils-version;-fix_strip-1.patch</userinput></screen>
  25. <para>Create a separate build directory again:</para>
  26. <screen><userinput>mkdir ../binutils-build
  27. cd ../binutils-build</userinput></screen>
  28. <para>Now prepare Binutils for compilation:</para>
  29. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
  30. --enable-shared --with-lib-path=/tools/lib</userinput></screen>
  31. <para>Compile the package:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <screen><userinput>make -k check</userinput></screen>
  34. <para>Except for a few known failures, the binutils tests should all pass. The
  35. exceptions to this rule are as follows:</para>
  36. <screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
  37. * 1 FAIL for selective4
  38. * 1 FAIL for selective5</computeroutput></screen>
  39. <para>And install the package:</para>
  40. <screen><userinput>make install</userinput></screen>
  41. <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
  42. chapter:</para>
  43. <screen><userinput>make -C ld clean
  44. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
  45. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and
  46. build directories. You will need these directories again in the next chapter
  47. in the state they are in now.</para></warning>
  48. </sect2>
  49. </sect1>