source: final-system/ppc64/glibc.xml@ 4981156

Last change on this file since 4981156 was 6eaa9e4, checked in by Ken Moffat <zarniwhoop@…>, 18 years ago

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

  • Property mode set to 100644
File size: 5.5 KB
RevLine 
[b90ddb1]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-glibc-32" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <title>Glibc-&glibc-version; 32 Bit Libraries</title>
12
13 <indexterm zone="ch-system-glibc-32">
14 <primary sortas="a-Glibc">Glibc</primary>
15 <secondary>32 Bit</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../common/glibc.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Glibc</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
26 href="../common/glibc.xml"
27 xpointer="xpointer(//*[@os='z'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../common/glibc.xml"
31 xpointer="xpointer(//*[@os='b'])"/>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../common/glibc.xml"
35 xpointer="xpointer(//*[@os='c'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../common/glibc.xml"
39 xpointer="xpointer(//*[@os='d'])"/>
40
[4a0dbd7]41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../common/glibc.xml"
43 xpointer="xpointer(//*[@os='p1'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../common/glibc.xml"
47 xpointer="xpointer(//*[@os='p2'])"/>
48
[b90ddb1]49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/glibc.xml"
51 xpointer="xpointer(//*[@os='s1'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../common/glibc.xml"
55 xpointer="xpointer(//*[@os='s2'])"/>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../../cross-tools/ppc64/glibc-64bit.xml"
59 xpointer="xpointer(//*[@os='t1'])"/>
60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../../cross-tools/ppc64/glibc.xml"
63 xpointer="xpointer(//*[@os='t2'])"/>
64
[6eaa9e4]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>
80
[b90ddb1]81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
82 href="../common/glibc.xml"
83 xpointer="xpointer(//*[@os='e'])"/>
84
85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
86 href="../common/glibc.xml"
87 xpointer="xpointer(//*[@os='f'])"/>
88
89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
90 href="../common/glibc.xml"
91 xpointer="xpointer(//*[@os='g'])"/>
92
93<screen os="h"><userinput>CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
94 ../glibc-&glibc-version;/configure --prefix=/usr \
95 --disable-profile --enable-add-ons --enable-kernel=2.6.0 \
[9cb6b64]96 --libexecdir=/usr/lib/glibc --host=${CLFS_TARGET32}</userinput></screen>
[b90ddb1]97
98 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
99 href="../common/glibc.xml"
100 xpointer="xpointer(//*[@os='i'])"/>
101
102 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
103 href="../common/glibc.xml"
104 xpointer="xpointer(//*[@os='j'])"/>
105
106 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
107 href="../common/glibc.xml"
108 xpointer="xpointer(//*[@os='k'])"/>
109
110 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
111 href="../common/glibc.xml"
112 xpointer="xpointer(//*[@os='l'])"/>
113
[8b3ca42]114 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
115 href="../multilib/glibc.xml"
116 xpointer="xpointer(//*[@os='l1'])"/>
117
118 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
119 href="../multilib/glibc.xml"
120 xpointer="xpointer(//*[@os='l2'])"/>
121
[b90ddb1]122 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
123 href="../common/glibc.xml"
124 xpointer="xpointer(//*[@os='m'])"/>
125
126 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
127 href="../common/glibc.xml"
128 xpointer="xpointer(//*[@os='n'])"/>
129
130 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
131 href="../common/glibc.xml"
132 xpointer="xpointer(//*[@os='o'])"/>
133
134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="../common/glibc.xml"
136 xpointer="xpointer(//*[@os='p'])"/>
137
138 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
139 href="../common/glibc.xml"
140 xpointer="xpointer(//*[@os='q'])"/>
141
142 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
143 href="../common/glibc.xml"
144 xpointer="xpointer(//*[@os='r'])"/>
145
146 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
147 href="../common/glibc.xml"
148 xpointer="xpointer(//*[@os='s'])"/>
149
150 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
151 href="../common/glibc.xml"
152 xpointer="xpointer(//*[@os='t'])"/>
153
154 </sect2>
155
156 <sect2 role="content">
157 <title/>
158
159 <para>Details on this package are located in <xref
160 linkend="contents-glibc" role="."/></para>
161
162 </sect2>
163
164</sect1>
Note: See TracBrowser for help on using the repository browser.