r1241 - in trunk/BOOK: chapter01 chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sun Oct 7 01:17:18 PDT 2007


Author: robert
Date: 2007-10-07 02:17:18 -0600 (Sun, 07 Oct 2007)
New Revision: 1241

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/glibc.xml
Log:
Replace /etc/ld.so.preload with /tools/etc/ld.so.preload in Glibc's elf/rtld.c for chapter 5. See http://wiki.linuxfromscratch.org/lfs/ticket/2081

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-10-07 07:49:33 UTC (rev 1240)
+++ trunk/BOOK/chapter01/changelog.xml	2007-10-07 08:17:18 UTC (rev 1241)
@@ -52,6 +52,10 @@
       <para>October 7th, 2006</para>
       <itemizedlist>
         <listitem>
+          <para>[robert] - Replace "/etc/ld.so.preload" with
+          "/tools/etc/ld.so.preload" in Glibc's elf/rtld.c.</para>
+        </listitem>
+        <listitem>
           <para>[robert] - New Bash fixes patch.</para>
         </listitem>
       </itemizedlist>

Modified: trunk/BOOK/chapter05/glibc.xml
===================================================================
--- trunk/BOOK/chapter05/glibc.xml	2007-10-07 07:49:33 UTC (rev 1240)
+++ trunk/BOOK/chapter05/glibc.xml	2007-10-07 08:17:18 UTC (rev 1241)
@@ -90,6 +90,16 @@
 
 <screen role="pax"><userinput>patch -Np1 -i ../&glibc-pt_pax-patch;</userinput></screen>
 
+    <para>Glibc uses a hard coded path for
+    <filename>/etc/ld.so.preload</filename>. To keep Glibc from preloading
+    libraries from the host machine perform the following command:</para>
+<!--
+See http://wiki.linuxfromscratch.org/lfs/ticket/2081
+-->
+
+<screen><userinput>cp -v elf/rtld.c{,.orig}
+sed 's@/etc/ld.so.preload@/tools&@' elf/rtld.c.orig > elf/rtld.c</userinput></screen>
+
     <para>The Glibc documentation recommends building Glibc outside of the source
     directory in a dedicated build directory:</para>
 




More information about the hlfs-book mailing list