r1156 - in trunk/BOOK: chapter01 chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Tue Jun 12 03:42:54 PDT 2007


Author: robert
Date: 2007-06-12 04:42:54 -0600 (Tue, 12 Jun 2007)
New Revision: 1156

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/adjusting.xml
Log:
Fix adjusting page for uclibc ld-uClibc.so.0, and run ./a.out to see if it crashes

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-06-12 10:08:33 UTC (rev 1155)
+++ trunk/BOOK/chapter01/changelog.xml	2007-06-12 10:42:54 UTC (rev 1156)
@@ -52,6 +52,10 @@
       <para>June 12th, 2007</para>
       <itemizedlist>
         <listitem>
+          <para>[robert]: Fix adjusting page for uclibc ld-uClibc.so.0, and
+          run ./a.out to see if it segfaults.</para>
+        </listitem>
+        <listitem>
           <para>[robert]: Fixed the kernel header install commands for
           linux24.</para>
         </listitem>

Modified: trunk/BOOK/chapter05/adjusting.xml
===================================================================
--- trunk/BOOK/chapter05/adjusting.xml	2007-06-12 10:08:33 UTC (rev 1155)
+++ trunk/BOOK/chapter05/adjusting.xml	2007-06-12 10:42:54 UTC (rev 1156)
@@ -62,9 +62,13 @@
   by default. A simple <command>sed</command> substitution then alters the
   dynamic linker that GCC will use:</para>
 
-<screen><userinput>gcc -dumpspecs | sed 's@/lib/@/tools/lib/@g' \
+<screen condition="uclibc"><userinput>gcc -dumpspecs | sed -e 's@/lib/@/tools/lib/@g' \
+    -e 's at ld-linux.so.2@ld-uClibc.so.0 at g' \
     > `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen>
 
+<screen condition="glibc"><userinput>gcc -dumpspecs | sed 's@/lib/@/tools/lib/@g' \
+    > `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen>
+
   <para condition="uclibc">It is recommended that the above command be copy-and-pasted in order to
   ensure accuracy. Alternatively, the specs file can be edited by hand. This is
   done by replacing every occurrence of <quote>/lib/ld-linux.so.2</quote> with
@@ -104,7 +108,8 @@
 
 <screen><userinput>echo 'int main(){return 0;}' > dummy.c
 cc dummy.c
-readelf -l a.out | grep ': /tools'</userinput></screen>
+readelf -l a.out | grep ': /tools'
+./a.out</userinput></screen>
 
     <para>If everything is working correctly, there should be no errors,
     and the output of the last command will be of the form:</para>




More information about the hlfs-book mailing list