Changeset 6eaa9e4 for final-system/ppc64


Ignore:
Timestamp:
Aug 15, 2006, 9:59:52 AM (18 years ago)
Author:
Ken Moffat <zarniwhoop@…>
Children:
4b0b7c7
Parents:
3886e27
Message:

Fix elf/check-textrel for 32-bit in ppc64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • final-system/ppc64/glibc.xml

    r3886e27 r6eaa9e4  
    6262    href="../../cross-tools/ppc64/glibc.xml"
    6363    xpointer="xpointer(//*[@os='t2'])"/>
     64
     65    <para os="u1">The powerpc (32) architecture is expected to fail the
     66    check-textrel tests because it cannot protect some elf segments in
     67    shared libraries from being executable and writable. Using the default
     68    64-bit compiler means the test runs as <literal>__powerpc64__</literal>
     69    which is <emphasis>not</emphasis> expected to fail. The problem only exists
     70    in 32-bit, the 64-bit ABI allows the segments to be protected.</para>
     71
     72    <para os="u2">Other distributions alter gcc to default to 32-bits and
     73    so do not see this failure.  Whether they then test correctly on 64-bit
     74    libraries is not our problem.</para>
     75
     76    <para os="u3">Force the test to use the 32-bit compiler with the following
     77    <command>sed</command> :</para>
     78
     79<screen os="u4"><userinput>sed -i "s/\(^check-textrel-CFLAGS = \)/\1 ${BUILD32} /" elf/Makefile</userinput></screen>
    6480
    6581    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
Note: See TracChangeset for help on using the changeset viewer.