[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[5aa74f2] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[bc82645e] | 7 |
|
---|
[23102484] | 8 | <sect1 id="ch-tools-binutils-pass2" role="wrap">
|
---|
[5aa74f2] | 9 | <?dbhtml filename="binutils-pass2.html"?>
|
---|
[81fd230] | 10 |
|
---|
[23102484] | 11 | <title>Binutils-&binutils-version; - Pass 2</title>
|
---|
[5888299] | 12 |
|
---|
[5aa74f2] | 13 | <indexterm zone="ch-tools-binutils-pass2">
|
---|
| 14 | <primary sortas="a-Binutils">Binutils</primary>
|
---|
[23102484] | 15 | <secondary>tools, pass 2</secondary>
|
---|
[5aa74f2] | 16 | </indexterm>
|
---|
[73aedd1d] | 17 |
|
---|
[5aa74f2] | 18 | <sect2 role="package">
|
---|
| 19 | <title/>
|
---|
[81fd230] | 20 |
|
---|
[5aa74f2] | 21 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 22 | href="../chapter06/binutils.xml"
|
---|
| 23 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[9652249] | 24 |
|
---|
[5aa74f2] | 25 | <segmentedlist>
|
---|
| 26 | <segtitle>&buildtime;</segtitle>
|
---|
| 27 | <segtitle>&diskspace;</segtitle>
|
---|
[73aedd1d] | 28 |
|
---|
[5aa74f2] | 29 | <seglistitem>
|
---|
| 30 | <seg>1.5 SBU</seg>
|
---|
| 31 | <seg>114 MB</seg>
|
---|
| 32 | </seglistitem>
|
---|
| 33 | </segmentedlist>
|
---|
| 34 |
|
---|
| 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 36 | href="../chapter06/binutils.xml"
|
---|
| 37 | xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
[23102484] | 42 | <title>Re-installation of Binutils</title>
|
---|
[5aa74f2] | 43 |
|
---|
[23102484] | 44 | <para>Create a separate build directory again:</para>
|
---|
[73aedd1d] | 45 |
|
---|
[54f7e8d] | 46 | <screen><userinput>mkdir -v ../binutils-build
|
---|
[73aedd1d] | 47 | cd ../binutils-build</userinput></screen>
|
---|
| 48 |
|
---|
[23102484] | 49 | <para>Prepare Binutils for compilation:</para>
|
---|
[73aedd1d] | 50 |
|
---|
[673b0d8] | 51 | <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
|
---|
[e6ab4b5] | 52 | --disable-nls --with-lib-path=/tools/lib</userinput></screen>
|
---|
[73aedd1d] | 53 |
|
---|
[5aa74f2] | 54 | <variablelist>
|
---|
[23102484] | 55 | <title>The meaning of the new configure options:</title>
|
---|
[73aedd1d] | 56 |
|
---|
[5aa74f2] | 57 | <varlistentry>
|
---|
| 58 | <term><parameter>--with-lib-path=/tools/lib</parameter></term>
|
---|
| 59 | <listitem>
|
---|
[23102484] | 60 | <para>This tells the configure script to specify the library
|
---|
| 61 | search path during the compilation of Binutils, resulting in
|
---|
| 62 | <filename class="directory">/tools/lib</filename> being passed
|
---|
| 63 | to the linker. This prevents the linker from searching through
|
---|
| 64 | library directories on the host.</para>
|
---|
[5aa74f2] | 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
[73aedd1d] | 67 |
|
---|
[5aa74f2] | 68 | </variablelist>
|
---|
| 69 |
|
---|
[23102484] | 70 | <para>Compile the package:</para>
|
---|
[3d36131c] | 71 |
|
---|
[81fd230] | 72 | <screen><userinput>make</userinput></screen>
|
---|
[9dfc02f] | 73 |
|
---|
[23102484] | 74 | <para>Compilation is now complete. As discussed earlier, running the
|
---|
| 75 | test suite is not mandatory for the temporary tools here in this
|
---|
| 76 | chapter. To run the Binutils test suite anyway, issue the following
|
---|
| 77 | command:</para>
|
---|
[9dfc02f] | 78 |
|
---|
[81fd230] | 79 | <screen><userinput>make check</userinput></screen>
|
---|
[9dfc02f] | 80 |
|
---|
[23102484] | 81 | <para>Install the package:</para>
|
---|
[73aedd1d] | 82 |
|
---|
| 83 | <screen><userinput>make install</userinput></screen>
|
---|
| 84 |
|
---|
[23102484] | 85 | <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in
|
---|
| 86 | the next chapter:</para>
|
---|
[73aedd1d] | 87 |
|
---|
| 88 | <screen><userinput>make -C ld clean
|
---|
[e6ab4b5] | 89 | make -C ld LIB_PATH=/usr/lib:/lib
|
---|
| 90 | cp -v ld/ld-new /tools/bin</userinput></screen>
|
---|
[73aedd1d] | 91 |
|
---|
| 92 |
|
---|
[5aa74f2] | 93 | </sect2>
|
---|
[73aedd1d] | 94 |
|
---|
[5aa74f2] | 95 | <sect2 role="content">
|
---|
| 96 | <title/>
|
---|
[5888299] | 97 |
|
---|
[23102484] | 98 | <para>Details on this package are located in
|
---|
| 99 | <xref linkend="contents-binutils" role="."/></para>
|
---|
[81fd230] | 100 |
|
---|
[5aa74f2] | 101 | </sect2>
|
---|
[81fd230] | 102 |
|
---|
[5aa74f2] | 103 | </sect1>
|
---|