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-pass2" role="wrap">
|
---|
7 | <title>Binutils-&binutils-version; - Pass 2</title>
|
---|
8 | <?dbhtml filename="binutils-pass2.html"?>
|
---|
9 |
|
---|
10 | <sect2 role="package"><title/>
|
---|
11 |
|
---|
12 | <segmentedlist>
|
---|
13 | <segtitle>&buildtime;</segtitle>
|
---|
14 | <segtitle>&diskspace;</segtitle>
|
---|
15 | <seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem>
|
---|
16 | </segmentedlist>
|
---|
17 |
|
---|
18 | </sect2>
|
---|
19 |
|
---|
20 | <sect2 role="installation">
|
---|
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 |
|
---|
28 | <para>Now prepare Binutils for compilation:</para>
|
---|
29 |
|
---|
30 | <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
|
---|
31 | --enable-shared --with-lib-path=/tools/lib</userinput></screen>
|
---|
32 |
|
---|
33 | <para>Compile the package:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>make</userinput></screen>
|
---|
36 |
|
---|
37 | <para>Test the results:</para>
|
---|
38 |
|
---|
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 |
|
---|
44 | <screen><computeroutput>* 5 FAIL (unexpected failure) for visibility
|
---|
45 | * 1 FAIL for selective4
|
---|
46 | * 1 FAIL for selective5</computeroutput></screen>
|
---|
47 |
|
---|
48 | <para>And install the package:</para>
|
---|
49 |
|
---|
50 | <screen><userinput>make install</userinput></screen>
|
---|
51 |
|
---|
52 | <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
|
---|
53 | chapter:</para>
|
---|
54 |
|
---|
55 | <screen><userinput>make -C ld clean
|
---|
56 | make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
|
---|
57 |
|
---|
58 |
|
---|
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>
|
---|
62 |
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | </sect1>
|
---|