From 98e7ac4cd781b87271d1ba1b90717de08023d4b7 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sun, 18 Dec 2016 15:14:26 +0000 Subject: Update toolchain sanity checks to use values for x86_64. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11155 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/adjusting.xml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'chapter06/adjusting.xml') diff --git a/chapter06/adjusting.xml b/chapter06/adjusting.xml index 04bb3eba0..b8cd5b530 100644 --- a/chapter06/adjusting.xml +++ b/chapter06/adjusting.xml @@ -50,13 +50,13 @@ readelf -l a.out | grep ': /lib' and the output of the last command will be (allowing for platform-specific differences in dynamic linker name): -[Requesting program interpreter: /lib/ld-linux.so.2] +[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] Note that /lib is now the prefix of our dynamic linker. - On 64-bit systems the interpreter should be - /lib64/ld-linux-x86-64.so.2. + On 32-bit systems the interpreter should be + /lib/ld-linux.so.2. Now make sure that we're setup to use the correct start files: @@ -64,14 +64,9 @@ readelf -l a.out | grep ': /lib' The output of the last command should be: -/usr/lib/crt1.o succeeded -/usr/lib/crti.o succeeded -/usr/lib/crtn.o succeeded - - On 64-bit systems, the path above will be - /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib64/. This - reduces to /usr/lib64 and /usr/lib64 is a symlink that points to - /usr/lib. +/usr/lib/../lib/crt1.o succeeded +/usr/lib/../lib/crti.o succeeded +/usr/lib/../lib/crtn.o succeeded Verify that the compiler is searching for the correct header files: @@ -91,14 +86,13 @@ readelf -l a.out | grep ': /lib' be ignored, but otherwise the output of the last command should be: SEARCH_DIR("/usr/lib") -SEARCH_DIR("/lib"); +SEARCH_DIR("/lib") Next make sure that we're using the correct libc: grep "/lib.*/libc.so.6 " dummy.log - The output of the last command (allowing for a lib64 directory - on 64-bit hosts) should be: + The output of the last command should be: attempt to open /lib/libc.so.6 succeeded @@ -106,11 +100,10 @@ SEARCH_DIR("/lib"); grep found dummy.log - The output of the last command should be (allowing for - platform-specific differences in dynamic linker name and a lib64 directory on - 64-bit hosts): + The output of the last command should be (allowing for + platform-specific differences in dynamic linker name): -found ld-linux.so.2 at /lib/ld-linux.so.2 +found ld-linux-x86-64.so.2 at /lib/ld-linux-x86-64.so.2 If the output does not appear as shown above or is not received at all, then something is seriously wrong. Investigate and retrace the -- cgit v1.2.3-54-g00ecf