binutils-pass1.xml 2.2 KB

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