binutils-pass1.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <para>Create a buil dir:</para>
  23. <screen><userinput>mkdir ../binutils-build
  24. cd ../binutils-build</userinput></screen>
  25. <note><para>If you want the SBU values you could wrap the four commands in a
  26. <command>time</command> command like this:
  27. <userinput>time { ./configure ... &amp;&amp; ... &amp;&amp; ...
  28. &amp;&amp; make install; }</userinput>.</para></note>
  29. <para>Now prepare Binutils for compilation:</para>
  30. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen>
  31. <para>Continue with compiling the package:</para>
  32. <screen><userinput>make configure-host
  33. make LDFLAGS="-all-static"</userinput></screen>
  34. <para>Now install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. <para>Now prepare the linker for the <quote>Adjusting</quote> phase later on:</para>
  37. <screen><userinput>make -C ld clean
  38. make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
  39. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils build and
  40. source directories. You will need them again in their current state a bit
  41. further on in this chapter.</para></warning>
  42. </sect2>
  43. </sect1>