diff options
author | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2008-12-03 22:46:04 +0000 |
---|---|---|
committer | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2008-12-03 22:46:04 +0000 |
commit | 6e886330cf157dc71e6a0a1fca410d7005683167 (patch) | |
tree | 0d8c4ae5a6429328469c512bb9f6661ad3886e19 /chapter05/adjusting.xml | |
parent | b0e1dc860c471d7047fc906001f3a336ef5f357c (diff) |
Initial addition of support for x86_64
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8754 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/adjusting.xml')
-rw-r--r-- | chapter05/adjusting.xml | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index 35d77a78f..a916e3621 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -32,23 +32,21 @@ 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.</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/ld-linux.so.2@/tools&@g' > \ +<screen><userinput>gcc -dumpspecs | sed 's@/lib\(64\)\?/ld@/tools&@g' > \ `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen> <para>During the build process, GCC runs a script @@ -86,7 +84,8 @@ readelf -l a.out | grep ': /tools'</userinput></screen> <screen><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux.so.2]</computeroutput></screen> - <para>Note that <filename class="directory">/tools/lib</filename> + <para>Note that <filename class="directory">/tools/lib</filename>, or + <filename class="directory">/tools/lib64</filename> for 64-bit machines appears as the prefix of the dynamic linker.</para> <para>If the output is not shown as above or there was no output at all, |