|
@@ -15,27 +15,20 @@
|
|
|
these libraries. In order to accomplish this, the linker and the
|
|
|
compiler's specs file need to be adjusted.</para>
|
|
|
|
|
|
- <para>The linker, adjusted at the end of the first pass of Binutils,
|
|
|
- is installed by running the following command from within the
|
|
|
- <filename class="directory">binutils-build</filename> directory:</para>
|
|
|
+ <para>The linker, adjusted at the end of the first pass of Binutils, needs
|
|
|
+ to be renamed so that it can be properly found and used. First, backup the
|
|
|
+ original linker, then replace it with the adjusted linker. We'll also
|
|
|
+ create a link to its counterpart in <filename class="directory">
|
|
|
+ /tools/$(gcc -dumpmachine)/bin</filename></para>
|
|
|
|
|
|
-<screen><userinput>make -C ld install</userinput></screen>
|
|
|
+<screen><userinput>mv -v /tools/bin/{ld,ld-old}
|
|
|
+mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
|
|
|
+mv -v /tools/bin/{ld-new,ld}
|
|
|
+ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
|
|
|
|
|
|
<para>From this point onwards, everything will link only against the
|
|
|
libraries in <filename class="directory">/tools/lib</filename>.</para>
|
|
|
|
|
|
- <note>
|
|
|
- <para>If the earlier warning to retain the Binutils source and
|
|
|
- build directories from the first pass was missed, ignore the above
|
|
|
- command. This results in a small chance that the subsequent testing
|
|
|
- programs will link against libraries on the host. This is not ideal,
|
|
|
- but it is not a major problem. The situation is corrected when the
|
|
|
- second pass of Binutils is installed later.</para>
|
|
|
- </note>
|
|
|
-
|
|
|
- <para>Now that the adjusted linker is installed, the Binutils build and source
|
|
|
- directories should be removed.</para>
|
|
|
-
|
|
|
<para>The next task is to point GCC to the new dynamic linker. This is done by
|
|
|
dumping GCC's <quote>specs</quote> file to a location where GCC will look for it
|
|
|
by default. A simple <command>sed</command> substitution then alters the
|