From 6e886330cf157dc71e6a0a1fca410d7005683167 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Wed, 3 Dec 2008 22:46:04 +0000 Subject: Initial addition of support for x86_64 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8754 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/readjusting.xml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'chapter06/readjusting.xml') diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index 83cdf298f..8bda83151 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -37,16 +37,7 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld and Glibc start files. A sed command accomplishes this: - - If working on a platform where the name of the dynamic linker is - something other than ld-linux.so.2, - substitute ld-linux.so.2 with the name of the platform's - dynamic linker in the following commands. Refer to if necessary. - - -gcc -dumpspecs | sed \ - -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ +gcc -dumpspecs | sed -e 's@/tools@@g' \ -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \ `dirname $(gcc --print-libgcc-file-name)`/specs @@ -97,7 +88,8 @@ readelf -l a.out | grep ': /lib' grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' If everything is working correctly, there should be no errors, - and the output of the last command will be: + and the output of the last command (allowing for platform-specific target triplets) + will be: SEARCH_DIR("/tools/i686-pc-linux-gnu/lib") SEARCH_DIR("/usr/lib") @@ -105,10 +97,11 @@ SEARCH_DIR("/lib"); Next make sure that we're using the correct libc: -grep "/lib/libc.so.6 " dummy.log +grep "/lib.*/libc.so.6 " dummy.log If everything is working correctly, there should be no errors, - and the output of the last command will be: + and the output of the last command (allowing for a lib64 directory on 64-bit hosts) + will be: attempt to open /lib/libc.so.6 succeeded @@ -118,7 +111,8 @@ SEARCH_DIR("/lib"); If everything is working correctly, there should be no errors, and the output of the last command will be (allowing for - platform-specific differences in dynamic linker name): + platform-specific differences in dynamic linker name and a lib64 directory + on 64-bit hosts): found ld-linux.so.2 at /lib/ld-linux.so.2 -- cgit v1.2.3-54-g00ecf