1
0

binutils-pass2.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. <screen><userinput>make -k check</userinput></screen>
  31. <para>Except for a few known failures, the binutils tests should all pass. The
  32. exceptions to this rule are as follows:</para>
  33. <screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
  34. * 1 FAIL for selective4
  35. * 1 FAIL for selective5</computeroutput></screen>
  36. <para>And install the package:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
  39. chapter:</para>
  40. <screen><userinput>make -C ld clean
  41. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
  42. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and
  43. build directories. You will need these directories again in the next chapter
  44. in the state they are in now.</para></warning>
  45. </sect2>
  46. </sect1>