aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/adjusting.xml
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2016-12-18 15:14:26 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2016-12-18 15:14:26 +0000
commit98e7ac4cd781b87271d1ba1b90717de08023d4b7 (patch)
tree84ddf70f48d9f740fbc467ea4a3f0f1f02aabbf3 /chapter06/adjusting.xml
parentbe3d9f313a25000d1cbaa631852be62330828f2c (diff)
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
Diffstat (limited to 'chapter06/adjusting.xml')
-rw-r--r--chapter06/adjusting.xml29
1 files changed, 11 insertions, 18 deletions
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'</userinput></screen>
and the output of the last command will be (allowing for
platform-specific differences in dynamic linker name):</para>
-<screen os="c"><computeroutput>[Requesting program interpreter: /lib/ld-linux.so.2]</computeroutput></screen>
+<screen os="c"><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen>
<para>Note that <filename class="directory">/lib</filename> is now
the prefix of our dynamic linker.</para>
- <note><para>On 64-bit systems the interpreter should be
- /lib64/ld-linux-x86-64.so.2.</para></note>
+ <note><para>On 32-bit systems the interpreter should be
+ /lib/ld-linux.so.2.</para></note>
<para os="d">Now make sure that we're setup to use the correct start files:</para>
@@ -64,14 +64,9 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
<para os="f">The output of the last command should be:</para>
-<screen><computeroutput>/usr/lib/crt1.o succeeded
-/usr/lib/crti.o succeeded
-/usr/lib/crtn.o succeeded</computeroutput></screen>
-
- <note><para>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.</para></note>
+<screen><computeroutput>/usr/lib/../lib/crt1.o succeeded
+/usr/lib/../lib/crti.o succeeded
+/usr/lib/../lib/crtn.o succeeded</computeroutput></screen>
<para os="g">Verify that the compiler is searching for the correct header
files:</para>
@@ -91,14 +86,13 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
be ignored, but otherwise the output of the last command should be:</para>
<screen><computeroutput>SEARCH_DIR("/usr/lib")
-SEARCH_DIR("/lib");</computeroutput></screen>
+SEARCH_DIR("/lib")</computeroutput></screen>
<para os="l">Next make sure that we're using the correct libc:</para>
<screen os="m"><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
- <para os="n">The output of the last command (allowing for a lib64 directory
- on 64-bit hosts) should be:</para>
+ <para os="n">The output of the last command should be:</para>
<screen os="o"><computeroutput>attempt to open /lib/libc.so.6 succeeded</computeroutput></screen>
@@ -106,11 +100,10 @@ SEARCH_DIR("/lib");</computeroutput></screen>
<screen os="q"><userinput>grep found dummy.log</userinput></screen>
- <para os="r"> 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):</para>
+ <para os="r">The output of the last command should be (allowing for
+ platform-specific differences in dynamic linker name):</para>
-<screen os="s"><computeroutput>found ld-linux.so.2 at /lib/ld-linux.so.2</computeroutput></screen>
+<screen os="s"><computeroutput>found ld-linux-x86-64.so.2 at /lib/ld-linux-x86-64.so.2</computeroutput></screen>
<para os="t">If the output does not appear as shown above or is not received
at all, then something is seriously wrong. Investigate and retrace the