r1177 - trunk/BOOK/chapter05

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Jun 23 02:34:11 PDT 2007


Author: manuel
Date: 2007-06-23 03:34:10 -0600 (Sat, 23 Jun 2007)
New Revision: 1177

Modified:
   trunk/BOOK/chapter05/cocoon-toolchain.xml
Log:
Placed SSP cocoon check fix in the actual command.

Modified: trunk/BOOK/chapter05/cocoon-toolchain.xml
===================================================================
--- trunk/BOOK/chapter05/cocoon-toolchain.xml	2007-06-22 21:05:12 UTC (rev 1176)
+++ trunk/BOOK/chapter05/cocoon-toolchain.xml	2007-06-23 09:34:10 UTC (rev 1177)
@@ -341,7 +341,7 @@
     will work with the redefined function prototypes:</para>
 
 <screen condition="uclibc"><userinput>ln -vs ssp/{ssp,stdio,string,unistd}.h \
-    `dirname $(gcc -print-libgcc-file-name)`/include/</userinput></screen> 
+    `dirname $(gcc -print-libgcc-file-name)`/include/</userinput></screen>
 
     <para condition="uclibc">You may notice we get a linker warning every time
     we link to <filename class="libraryfile">libssp.so</filename> because this
@@ -380,7 +380,7 @@
 gcc -o strcat-overflow-ssp strcat-overflow.c \
     -U_FORTIFY_SOURCE
 ./strcat-overflow-ssp abcdefg
-./strcat-overflow-ssp abcdefghi
+./strcat-overflow-ssp abcdefghij
 readelf -ld strcat-overflow | \
     grep -E 'Shared object|TEXTREL'</userinput></screen>
 
@@ -394,7 +394,7 @@
 $ ./strcat-overflow-ssp abcdefg
 1abcdefg
 $ ./strcat-overflow-ssp abcdefghij
-1abcdefghi
+1abcdefghij
 *** stack smashing detected ***: ./strcat-overflow-ssp terminated
 $ readelf -ld strcat-overflow | \
     grep -E 'Shared object|TEXTREL'




More information about the hlfs-book mailing list