Author: jim
Date: 2006-08-15 13:47:34 -0600 (Tue, 15 Aug 2006)
New Revision: 2217
Modified:
/
trunk/BOOK/final-system/ppc64/glibc.xml
trunk/BOOK/introduction/ppc64/changelog.xml
Log:
[EMAIL PROTECTED] (orig r2345): ken | 2006-08-15 09:59:52 -0700
Fix elf/check-textrel for 32-bit in ppc64
Property changes on:
___________________________________________________________________
Name: svk:merge
- b6734a72-470d-0410-b049-f317dca95413:/:2344
+ b6734a72-470d-0410-b049-f317dca95413:/:2345
Modified: trunk/BOOK/final-system/ppc64/glibc.xml
===================================================================
--- trunk/BOOK/final-system/ppc64/glibc.xml 2006-08-15 19:47:16 UTC (rev
2216)
+++ trunk/BOOK/final-system/ppc64/glibc.xml 2006-08-15 19:47:34 UTC (rev
2217)
@@ -62,6 +62,22 @@
href="../../cross-tools/ppc64/glibc.xml"
xpointer="xpointer(//[EMAIL PROTECTED]'t2'])"/>
+ <para os="u1">The powerpc (32) architecture is expected to fail the
+ check-textrel tests because it cannot protect some elf segments in
+ shared libraries from being executable and writable. Using the default
+ 64-bit compiler means the test runs as <literal>__powerpc64__</literal>
+ which is <emphasis>not</emphasis> expected to fail. The problem only exists
+ in 32-bit, the 64-bit ABI allows the segments to be protected.</para>
+
+ <para os="u2">Other distributions alter gcc to default to 32-bits and
+ so do not see this failure. Whether they then test correctly on 64-bit
+ libraries is not our problem.</para>
+
+ <para os="u3">Force the test to use the 32-bit compiler with the following
+ <command>sed</command> :</para>
+
+<screen os="u4"><userinput>sed -i "s/\(^check-textrel-CFLAGS = \)/\1
${BUILD32} /" elf/Makefile</userinput></screen>
+
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="../common/glibc.xml"
xpointer="xpointer(//[EMAIL PROTECTED]'e'])"/>
Modified: trunk/BOOK/introduction/ppc64/changelog.xml
===================================================================
--- trunk/BOOK/introduction/ppc64/changelog.xml 2006-08-15 19:47:16 UTC (rev
2216)
+++ trunk/BOOK/introduction/ppc64/changelog.xml 2006-08-15 19:47:34 UTC (rev
2217)
@@ -34,6 +34,15 @@
-->
<listitem>
+ <para>August 15, 2006</para>
+ <itemizedlist>
+ <listitem>
+ <para>[ken] - Fix textrel test for 32-bit glibc.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>August 13, 2006</para>
<itemizedlist>
<listitem>
--
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page