r1531 - branches/Onward/temporary_system

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sun Feb 14 09:19:34 PST 2010


Author: robert
Date: 2010-02-14 10:19:34 -0700 (Sun, 14 Feb 2010)
New Revision: 1531

Modified:
   branches/Onward/temporary_system/adjusting.txt
   branches/Onward/temporary_system/binutils_pass1.txt
   branches/Onward/temporary_system/binutils_pass2.txt
   branches/Onward/temporary_system/linux-headers.txt
Log:
Added --disable-multilib to Binutils, for x86_64. Add back the building of ld-new, named ld-new-pass1 and ld-new-pass2. Edited the comments on the Binutils pages.

Modified: branches/Onward/temporary_system/adjusting.txt
===================================================================
--- branches/Onward/temporary_system/adjusting.txt	2010-02-13 04:44:49 UTC (rev 1530)
+++ branches/Onward/temporary_system/adjusting.txt	2010-02-14 17:19:34 UTC (rev 1531)
@@ -5,8 +5,8 @@
 
 gcc -dumpspecs > /tools/gcc-pass1-specs &&
 
-mv -v /tools/bin/{ld,ld-old} &&
-cp -v /tools/bin/{ld-new,ld} &&
+mv -v /tools/bin/{ld,ld-old-temp} &&
+cp -v /tools/bin/{ld-new-pass1,ld} &&
 
 gcc -dumpspecs | sed 's@/lib/ld-linux.so.2@/tools&@g' \
   > `dirname $(gcc -print-libgcc-file-name)`/specs &&

Modified: branches/Onward/temporary_system/binutils_pass1.txt
===================================================================
--- branches/Onward/temporary_system/binutils_pass1.txt	2010-02-13 04:44:49 UTC (rev 1530)
+++ branches/Onward/temporary_system/binutils_pass1.txt	2010-02-14 17:19:34 UTC (rev 1531)
@@ -3,7 +3,7 @@
 # Add PT_PaX header marking support. These markings are using by the PaX
 # kernel, and Pax-utils, to identify which programs need things like executable
 # stack, etc. Without this patch the PaX kernel must use legacy mode, and this
-# patch is greatly preferable:
+# patch is preferable:
 
 patch -p1 -i ../binutils-2.19-pt-pax-flags-200811041810.patch &&
 
@@ -13,14 +13,32 @@
 mkdir -v obj/ &&
 cd obj/ &&
 
-# Configure:
+# Configure Binutils:
 
-../configure --prefix=/tools \
-	--disable-nls --disable-werror \
+../configure --prefix=/tools --enable-shared \
+	--disable-nls --disable-multilib --disable-werror \
 	--infodir=$(pwd)/DESTDIR --mandir=$(pwd)/DESTDIR &&
 
-# Build:
+# --disable-nls disables native language support, which is not needed right
+# now.
 
+# --disable-multilib prevents GCC from building support for multilib systems.
+# This is not needed, or supported.
+
+# --disable-werror disables the -Werror option. This is sometimes needed
+# depending on if the host system compiler causes warnings.
+
+# --infodir and --mandir points to the current directory so the unneeded
+# package documentation is not installed to /tools.
+
+# Build and install Binutils:
+
 make tooldir=/tools &&
-make tooldir=/tools install
+make tooldir=/tools install &&
 
+# Rebuild and install another linker that will be used for the adjusting phase:
+
+make -C ld clean &&
+make -C ld LIB_PATH=/tools/lib &&
+install -v ld/ld-new-pass1 /tools/bin
+

Modified: branches/Onward/temporary_system/binutils_pass2.txt
===================================================================
--- branches/Onward/temporary_system/binutils_pass2.txt	2010-02-13 04:44:49 UTC (rev 1530)
+++ branches/Onward/temporary_system/binutils_pass2.txt	2010-02-14 17:19:34 UTC (rev 1531)
@@ -2,19 +2,21 @@
 
 patch -p1 -i ../binutils-2.19-pt-pax-flags-200811041810.patch &&
 
-# Binutils libiberty has the same bug GCC has:
+# Binutils libiberty has the same _FORTIFY_SOURCE bug GCC has:
 
 patch -p0 -i ../gcc-4.2-20081001-asprintf_fix.diff &&
 
+# Configure, build, and install Binutils:
+
 mkdir -v obj/ &&
 cd obj/ &&
-../configure --prefix=/tools --enable-shared \
-	--with-lib-path=/tools/lib --disable-werror \
+../configure --prefix=/tools --with-lib-path=/tools/lib \
+	--enable-shared --disable-multilib --disable-werror \
 	--infodir=$(pwd)/DESTDIR --mandir=$(pwd)/DESTDIR &&
 make tooldir=/tools &&
 make tooldir=/tools install &&
 make -C ld clean &&
 make -C ld LIB_PATH=/usr/lib:/lib &&
-install -v ld/ld-new /tools/bin
+install -v ld/ld-new-pass2 /tools/bin
 
 

Modified: branches/Onward/temporary_system/linux-headers.txt
===================================================================
--- branches/Onward/temporary_system/linux-headers.txt	2010-02-13 04:44:49 UTC (rev 1530)
+++ branches/Onward/temporary_system/linux-headers.txt	2010-02-14 17:19:34 UTC (rev 1531)
@@ -8,5 +8,5 @@
 
 make -C ../ O=$(pwd) headers_check &&
 make -C ../ O=$(pwd) INSTALL_HDR_PATH=dest headers_install &&
-cp -v -r dest/include/* /tools/include
+cp -vr dest/include/* /tools/include
 




More information about the hlfs-book mailing list