Author: matthew
Date: 2012-03-27 14:10:11 -0600 (Tue, 27 Mar 2012)
New Revision: 9791

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter01/whatsnew.xml
   trunk/BOOK/chapter03/patches.xml
   trunk/BOOK/chapter05/binutils-pass1.xml
   trunk/BOOK/chapter05/binutils-pass2.xml
   trunk/BOOK/chapter06/binutils.xml
   trunk/BOOK/patches.ent
Log:
Add a patch to fix building Binutils with -O3 optimization

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2012-03-27 19:54:59 UTC (rev 9790)
+++ trunk/BOOK/chapter01/changelog.xml  2012-03-27 20:10:11 UTC (rev 9791)
@@ -40,6 +40,10 @@
       <para>2012-03-27</para>
       <itemizedlist>
          <listitem>
+           <para>[matthew] - Add a patch to fix building of Binutils with the
+           -O3 compiler flag.  Thanks to Pierre Labastie for the report.</para>
+         </listitem>
+         <listitem>
            <para>[matthew] - Add the GCC fix patch back to Glibc instructions
            to fix a build issue on 32-bit hosts.  Thanks to Pierre Labastie for
            the report.</para>

Modified: trunk/BOOK/chapter01/whatsnew.xml
===================================================================
--- trunk/BOOK/chapter01/whatsnew.xml   2012-03-27 19:54:59 UTC (rev 9790)
+++ trunk/BOOK/chapter01/whatsnew.xml   2012-03-27 20:10:11 UTC (rev 9791)
@@ -224,6 +224,10 @@
     </listitem>
 
     <listitem>
+      <para>&binutils-build-patch;</para>
+    </listitem>
+
+    <listitem>
       <para>&gcc-startfiles-patch;</para>
     </listitem>
 

Modified: trunk/BOOK/chapter03/patches.xml
===================================================================
--- trunk/BOOK/chapter03/patches.xml    2012-03-27 19:54:59 UTC (rev 9790)
+++ trunk/BOOK/chapter03/patches.xml    2012-03-27 20:10:11 UTC (rev 9791)
@@ -27,6 +27,14 @@
     </varlistentry>
 
     <varlistentry>
+      <term>Binutils Build Fix Patch - 
<token>&binutils-build-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink 
url="&patches-root;&binutils-build-patch;"/></para>
+        <para>MD5 sum: <literal>&binutils-build-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Bzip2 Documentation Patch - 
<token>&bzip2-docs-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&bzip2-docs-patch;"/></para>

Modified: trunk/BOOK/chapter05/binutils-pass1.xml
===================================================================
--- trunk/BOOK/chapter05/binutils-pass1.xml     2012-03-27 19:54:59 UTC (rev 
9790)
+++ trunk/BOOK/chapter05/binutils-pass1.xml     2012-03-27 20:10:11 UTC (rev 
9791)
@@ -70,6 +70,10 @@
     <note><para>The approximate build SBU values and required disk space
     in Chapter 5 does not include test suite data.</para></note>
 
+    <para>Apply a patch to prevent a build failure when using compiler 
optimizations:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i 
../&binutils-build-patch;</userinput></screen>
+
     <para>Now prepare Binutils for compilation:</para>
 
 <screen><userinput remap="configure">../binutils-&binutils-version;/configure 
--target=$LFS_TGT \

Modified: trunk/BOOK/chapter05/binutils-pass2.xml
===================================================================
--- trunk/BOOK/chapter05/binutils-pass2.xml     2012-03-27 19:54:59 UTC (rev 
9790)
+++ trunk/BOOK/chapter05/binutils-pass2.xml     2012-03-27 20:10:11 UTC (rev 
9791)
@@ -48,6 +48,10 @@
 <screen><userinput remap="pre">mkdir -v ../binutils-build
 cd ../binutils-build</userinput></screen>
 
+    <para>Apply a patch to prevent a build failure when using compiler 
optimizations:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i 
../&binutils-build-patch;</userinput></screen>
+
     <para>Prepare Binutils for compilation:</para>
 
 <screen><userinput remap="configure">CC="$LFS_TGT-gcc -B/tools/lib/" \

Modified: trunk/BOOK/chapter06/binutils.xml
===================================================================
--- trunk/BOOK/chapter06/binutils.xml   2012-03-27 19:54:59 UTC (rev 9790)
+++ trunk/BOOK/chapter06/binutils.xml   2012-03-27 20:10:11 UTC (rev 9791)
@@ -69,6 +69,10 @@
 <screen><userinput remap="pre">sed -i "/exception_defines.h/d" 
ld/testsuite/ld-elf/new.cc
 sed -i "s/-fvtable-gc //" 
ld/testsuite/ld-selective/selective.exp</userinput></screen>
 
+    <para>Apply a patch to prevent a build failure when using compiler 
optimizations:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i 
../&binutils-build-patch;</userinput></screen>
+
     <para>The Binutils documentation recommends building Binutils outside of 
the
     source directory in a dedicated build directory:</para>
 

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent      2012-03-27 19:54:59 UTC (rev 9790)
+++ trunk/BOOK/patches.ent      2012-03-27 20:10:11 UTC (rev 9791)
@@ -7,6 +7,11 @@
 <!ENTITY bash-fixes-patch-size "24 KB">
 
 
+<!ENTITY binutils-build-patch "binutils-&binutils-version;-build_fix-1.patch">
+<!ENTITY binutils-build-patch-md5 "ddc5a9a170ed6ba23b8eb7d808e609ee">
+<!ENTITY binutils-build-patch-size "1.4 KB">
+
+
 <!ENTITY bzip2-docs-patch "bzip2-&bzip2-version;-install_docs-1.patch">
 <!ENTITY bzip2-docs-patch-md5 "6a5ac7e89b791aae556de0f745916f7f">
 <!ENTITY bzip2-docs-patch-size "1.6 KB">

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to