binutils-pass2.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>Re-installation of Binutils</title>
  18. <para>The current version of Binutils in use has a bug that causes strip to
  19. remove necessary information from certain library files. This patch fixes
  20. the problem:</para>
  21. <screen><userinput>patch -Np1 -i ../binutils-&binutils-version;-fix_strip-1.patch</userinput></screen>
  22. <para>Create a separate build directory again:</para>
  23. <screen><userinput>mkdir ../binutils-build
  24. cd ../binutils-build</userinput></screen>
  25. <para>Now prepare Binutils for compilation:</para>
  26. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
  27. --enable-shared --with-lib-path=/tools/lib</userinput></screen>
  28. <para>Compile the package:</para>
  29. <screen><userinput>make</userinput></screen>
  30. <para>Test the results:</para>
  31. <screen><userinput>make -k check</userinput></screen>
  32. <para>Except for a few known failures, the binutils tests should all pass. The
  33. exceptions to this rule are as follows:</para>
  34. <screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
  35. * 1 FAIL for selective4
  36. * 1 FAIL for selective5</computeroutput></screen>
  37. <para>And install the package:</para>
  38. <screen><userinput>make install</userinput></screen>
  39. <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
  40. chapter:</para>
  41. <screen><userinput>make -C ld clean
  42. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
  43. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and
  44. build directories. You will need these directories again in the next chapter
  45. in the state they are in now.</para></warning>
  46. </sect2>
  47. </sect1>