binutils-pass1.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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-pass1" role="wrap">
  7. <title>Binutils-&binutils-version; - Pass 1</title>
  8. <?dbhtml filename="binutils-pass1.html"?>
  9. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>1.0 SBU</seg><seg>194 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>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. <screen><userinput>mkdir ../binutils-build
  23. cd ../binutils-build</userinput></screen>
  24. <note><para>If you want the SBU values you could wrap the four commands in a
  25. <command>time</command> command like this:
  26. <userinput>time { ./configure ... &amp;&amp; ... &amp;&amp; ...
  27. &amp;&amp; make install; }</userinput>.</para></note>
  28. <para>Now prepare Binutils for compilation:</para>
  29. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen>
  30. <para>Continue with compiling the package:</para>
  31. <screen><userinput>make configure-host
  32. make LDFLAGS="-all-static"</userinput></screen>
  33. <para>Now install the package:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. <para>Now prepare the linker for the <quote>Adjusting</quote> phase later on:</para>
  36. <screen><userinput>make -C ld clean
  37. make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
  38. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils build and
  39. source directories. You will need them again in their current state a bit
  40. further on in this chapter.</para></warning>
  41. </sect2>
  42. </sect1>