r52 - in trunk: BOOK text text/chapter05

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Jan 5 03:10:40 PST 2005

Author: robert
Date: 2005-01-05 04:10:40 -0700 (Wed, 05 Jan 2005)
New Revision: 52

updated readme, fixed date, and fixed small oops in gcc.txt

Modified: trunk/BOOK/general.ent
--- trunk/BOOK/general.ent	2005-01-05 10:43:12 UTC (rev 51)
+++ trunk/BOOK/general.ent	2005-01-05 11:10:40 UTC (rev 52)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20041210">
-<!ENTITY releasedate "December 10, 2004">
+<!ENTITY version "SVN-20050105">
+<!ENTITY releasedate "January 5th, 2005">
 <!ENTITY milestone "0.1">
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/">

Modified: trunk/text/README.txt
--- trunk/text/README.txt	2005-01-05 10:43:12 UTC (rev 51)
+++ trunk/text/README.txt	2005-01-05 11:10:40 UTC (rev 52)
@@ -1,7 +1,7 @@
-Hardened Linux From Scratch - SVN-20041208
-December 8th, 2004
+Hardened Linux From Scratch - SVN-20050105
+January 5th, 2005
-This is the snapshot release of HLFS featuring uClibc, ProPolice Stack
+This is the snapshot release of HLFS featuring uClibc, Glibc, ProPolice Stack
 Protector, PaX, Grsecurity, Position Independent Executable (PIE) toolchain,
 and Frandom Random Number Suite.
 See: http://www.linuxfromscratch.org/hlfs/ (HLFS Homepage)
@@ -14,34 +14,27 @@
      (Binutils PIE patch. This is now part of bintuils-2.15*)
      http://frandom.sourceforge.net/ (Frandom Homepage)
-We are not using uClibc because it is small, we are using it because they
-support PIE and Stack Protector. The small size is just a bonus. Glibc
-was removed because they do not support what we are doing, it is bloated,
-unmanageable, and never stable.
+We have two C libraries to choose from now. Glibc is very widely supported,
+stable, and fast. uClibc is designed for embeded systems, it is very small
+and is supported by most software. Both Libc's support all of the above
+list of features. There are plans to add uClibc to a beyond-hlfs book so both
+libraries can be used on the same system.
 The instructions in this book only work for i386 so far.
 The instructions in this book we tested on an LFS-unstable host system.
-'make check' is slowly being added to packages that support it. Packages
-with very poor results will have its tests skipped for now. Testsuite
-failures need to be investigated. In time they should all be sorted out.
-Tests should be saved for chapter 6.
 See chapter03/ for package and patch versions, and URL's.
 This book is based on Linux From Scratch Unstable. This book assumes you
 already have experience with Linux From Scratch and are comfortable using it.
-We are using linux-2.6.7 to be compatabile with Grsec and PaX as they're
-not yet ported to the 2.6.9 kernel.
 See BUGS.txt for current bugs.
 In chapter 6 we can statically link Coreutils, Bash, Udev, Util-linux, Grep,
 Vim, and Grub. This is incase ld.so or libc.so ever becomes damaged or missing,
 we will still have basic system functionality. See
-chapter02/07-static-vs-shared.txt for more info on this.
+chapter02/07-static-vs-shared.txt for more info on this. This is optional.
 Send bugs, comments, and questions to:
 hlfs-dev at linuxfromscratch.org

Modified: trunk/text/chapter05/12-gcc-native.txt
--- trunk/text/chapter05/12-gcc-native.txt	2005-01-05 10:43:12 UTC (rev 51)
+++ trunk/text/chapter05/12-gcc-native.txt	2005-01-05 11:10:40 UTC (rev 52)
@@ -51,9 +51,9 @@
 # These commands will add -fstack-protector-all to the default for gcc and
 # g++. The only filter is for -fno-stack-protector*.
-perl -pi -e 's@\*cc1:\n@$_%(cc1_pie) %(cc1_ssp) @;' \
+perl -pi -e 's@\*cc1:\n@$_%(cc1_ssp) @;' \
 	$(gcc --print-file specs) &&
-perl -pi -e 's@\*cc1plus:\n@$_%(cc1_pie) %(cc1_ssp) @;' \
+perl -pi -e 's@\*cc1plus:\n@$_%(cc1_ssp) @;' \
 	$(gcc --print-file specs) &&
 echo '*cc1_ssp:
 %{!fno-stack-protector*: -fstack-protector-all}
@@ -69,6 +69,10 @@
 # The last echo command in this group must have its line pasted as a single
 # line, sorry. Make sure of this or else gcc will not work.
+perl -pi -e 's@\*cc1:\n@$_%(cc1_pie) @;' \
+        $(gcc --print-file specs) &&
+perl -pi -e 's@\*cc1plus:\n@$_%(cc1_pie) @;' \
+        $(gcc --print-file specs) &&
 perl -pi -e 's@%{pie:-pie}@%(link_pie)@;' \
                 $(gcc --print-file specs) &&
 perl -pi -e 's at pie:@!no-pie|pie:@g;' $(gcc --print-file specs) &&

More information about the hlfs-dev mailing list