|
@@ -32,22 +32,18 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
|
|
|
<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
|
|
|
- dynamic linker that GCC will use.</para>
|
|
|
+ dynamic linker that GCC will use. The principle here is to find all references
|
|
|
+ to the dynamic linker file in <filename class="directory">/lib</filename>
|
|
|
+ or possibly <filename class="directory">/lib64</filename> if the host system
|
|
|
+ is 64-bit capable, and adjust them to point to the new location in
|
|
|
+ <filename class="directory">/tools</filename>.</para>
|
|
|
|
|
|
<para>For the sake of accuracy, it is recommended to use a copy-and-paste
|
|
|
method when issuing the following command. Be sure to visually inspect the
|
|
|
- specs file and verify that all occurrences of <quote>/lib/ld-linux.so.2</quote>
|
|
|
- have been replaced with <quote>/tools/lib/ld-linux.so.2</quote>:</para>
|
|
|
-
|
|
|
- <important>
|
|
|
- <para>If working on a platform where the name of the dynamic linker is
|
|
|
- something other than <filename class="libraryfile">ld-linux.so.2</filename>,
|
|
|
- replace <quote>ld-linux.so.2</quote> with the name of the platform's
|
|
|
- dynamic linker in the following commands. Refer to <xref
|
|
|
- linkend="ch-tools-toolchaintechnotes" role=","/> if necessary. Additionally,
|
|
|
- note that on 64-bit machines the linker may actually be expected in the
|
|
|
- <filename class="directory">/lib64</filename> directory.</para>
|
|
|
- </important>
|
|
|
+ specs file to verify that it has properly adjusted all references to the
|
|
|
+ dynamic linker location. Refer to <xref
|
|
|
+ linkend="ch-tools-toolchaintechnotes" role=","/> for the default name
|
|
|
+ of the dynamic linker, if necessary.</para>
|
|
|
|
|
|
<!-- Ampersands are needed to allow copy and paste -->
|
|
|
<screen><userinput>gcc -dumpspecs | sed 's@/lib\(64\)\?/ld@/tools&@g' \
|