Changeset 515ca2c for BOOK/final-system


Ignore:
Timestamp:
Aug 15, 2006, 9:59:52 AM (18 years ago)
Author:
Ken Moffat <zarniwhoop@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3c06a53
Parents:
45d3113
Message:

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

File:
1 edited

Legend:

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

    r45d3113 r515ca2c  
    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.