[673b0d8] | 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 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-binutils-pass2" role="wrap">
|
---|
[673b0d8] | 7 | <title>Binutils-&binutils-version; - Pass 2</title>
|
---|
| 8 | <?dbhtml filename="binutils-pass2.html"?>
|
---|
[bc82645e] | 9 |
|
---|
[9652249] | 10 | <sect2 role="package"><title/>
|
---|
[5888299] | 11 |
|
---|
[9652249] | 12 | <segmentedlist>
|
---|
| 13 | <segtitle>&buildtime;</segtitle>
|
---|
| 14 | <segtitle>&diskspace;</segtitle>
|
---|
| 15 | <seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem>
|
---|
| 16 | </segmentedlist>
|
---|
[73aedd1d] | 17 |
|
---|
[9652249] | 18 | </sect2>
|
---|
| 19 |
|
---|
| 20 | <sect2 role="installation">
|
---|
[73aedd1d] | 21 | <title>Re-installation of Binutils</title>
|
---|
| 22 |
|
---|
| 23 | <para>Create a separate build directory again:</para>
|
---|
| 24 |
|
---|
| 25 | <screen><userinput>mkdir ../binutils-build
|
---|
| 26 | cd ../binutils-build</userinput></screen>
|
---|
| 27 |
|
---|
[d27a27b] | 28 | <para>Now prepare Binutils for compilation:</para>
|
---|
[73aedd1d] | 29 |
|
---|
[673b0d8] | 30 | <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
|
---|
| 31 | --enable-shared --with-lib-path=/tools/lib</userinput></screen>
|
---|
[73aedd1d] | 32 |
|
---|
| 33 | <para>Compile the package:</para>
|
---|
| 34 |
|
---|
[b3adaba] | 35 | <screen><userinput>make</userinput></screen>
|
---|
[73aedd1d] | 36 |
|
---|
[3d36131c] | 37 | <para>Test the results:</para>
|
---|
| 38 |
|
---|
[9dfc02f] | 39 | <screen><userinput>make -k check</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | <para>Except for a few known failures, the binutils tests should all pass. The
|
---|
| 42 | exceptions to this rule are as follows:</para>
|
---|
| 43 |
|
---|
[574b0ea] | 44 | <screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
|
---|
[9dfc02f] | 45 | * 1 FAIL for selective4
|
---|
[574b0ea] | 46 | * 1 FAIL for selective5</computeroutput></screen>
|
---|
[9dfc02f] | 47 |
|
---|
[17476c5] | 48 | <para>And install the package:</para>
|
---|
[73aedd1d] | 49 |
|
---|
| 50 | <screen><userinput>make install</userinput></screen>
|
---|
| 51 |
|
---|
[574b0ea] | 52 | <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
|
---|
[73aedd1d] | 53 | chapter:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>make -C ld clean
|
---|
| 56 | make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
|
---|
| 57 |
|
---|
| 58 |
|
---|
[a0b689e] | 59 | <warning><para><emphasis>Do not yet remove</emphasis> the Binutils source and
|
---|
| 60 | build directories. You will need these directories again in the next chapter
|
---|
| 61 | in the state they are in now.</para></warning>
|
---|
[73aedd1d] | 62 |
|
---|
[0868461] | 63 | </sect2>
|
---|
[5888299] | 64 |
|
---|
[bc82645e] | 65 | </sect1>
|
---|