diff options
Diffstat (limited to 'meta/packages/glibc/glibc-2.4')
24 files changed, 0 insertions, 2892 deletions
diff --git a/meta/packages/glibc/glibc-2.4/arm-longlong.patch b/meta/packages/glibc/glibc-2.4/arm-longlong.patch deleted file mode 100644 index 28aca83dff..0000000000 --- a/meta/packages/glibc/glibc-2.4/arm-longlong.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | --- glibc-2.4/stdlib/longlong.h.ark 2006-03-11 22:49:27.000000000 +0100 | ||
2 | +++ glibc-2.4/stdlib/longlong.h 2006-03-11 22:55:12.000000000 +0100 | ||
3 | @@ -206,6 +206,14 @@ | ||
4 | "rI" ((USItype) (bh)), \ | ||
5 | "r" ((USItype) (al)), \ | ||
6 | "rI" ((USItype) (bl)) __CLOBBER_CC) | ||
7 | +/* v3m and all higher arches have long multiply support. */ | ||
8 | +#if !defined(__ARM_ARCH_2__) && !defined(__ARM_ARCH_3__) | ||
9 | +#define umul_ppmm(xh, xl, a, b) \ | ||
10 | + __asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b)) | ||
11 | +#define UMUL_TIME 5 | ||
12 | +#define smul_ppmm(xh, xl, a, b) \ | ||
13 | + __asm__ ("smull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b)) | ||
14 | +#else | ||
15 | #define umul_ppmm(xh, xl, a, b) \ | ||
16 | {register USItype __t0, __t1, __t2; \ | ||
17 | __asm__ ("%@ Inlined umul_ppmm\n" \ | ||
18 | @@ -227,7 +235,13 @@ | ||
19 | : "r" ((USItype) (a)), \ | ||
20 | "r" ((USItype) (b)) __CLOBBER_CC );} | ||
21 | #define UMUL_TIME 20 | ||
22 | +#endif | ||
23 | #define UDIV_TIME 100 | ||
24 | +#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__) | ||
25 | +#define count_leading_zeros(COUNT,X) ((COUNT) = __builtin_clz (X)) | ||
26 | +#define COUNT_LEADING_ZEROS_0 32 | ||
27 | +#endif | ||
28 | + | ||
29 | #endif /* __arm__ */ | ||
30 | |||
31 | #if defined (__hppa) && W_TYPE_SIZE == 32 | ||
32 | --- glibc-2.4/ports/sysdeps/arm/mp_clz_tab.c.ark 2006-03-11 22:56:43.000000000 +0100 | ||
33 | +++ glibc-2.4/ports/sysdeps/arm/mp_clz_tab.c 2006-03-11 22:58:19.000000000 +0100 | ||
34 | @@ -0,0 +1,24 @@ | ||
35 | +/* __clz_tab -- support for longlong.h | ||
36 | + Copyright (C) 2004 Free Software Foundation, Inc. | ||
37 | + This file is part of the GNU C Library. | ||
38 | + | ||
39 | + The GNU C Library is free software; you can redistribute it and/or | ||
40 | + modify it under the terms of the GNU Lesser General Public | ||
41 | + License as published by the Free Software Foundation; either | ||
42 | + version 2.1 of the License, or (at your option) any later version. | ||
43 | + | ||
44 | + The GNU C Library is distributed in the hope that it will be useful, | ||
45 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
46 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
47 | + Lesser General Public License for more details. | ||
48 | + | ||
49 | + You should have received a copy of the GNU Lesser General Public | ||
50 | + License along with the GNU C Library; if not, write to the Free | ||
51 | + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
52 | + 02111-1307 USA. */ | ||
53 | + | ||
54 | +#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__) | ||
55 | +/* Nothing required. */ | ||
56 | +#else | ||
57 | +#include <stdlib/mp_clz_tab.c> | ||
58 | +#endif | ||
diff --git a/meta/packages/glibc/glibc-2.4/arm-memcpy.patch b/meta/packages/glibc/glibc-2.4/arm-memcpy.patch deleted file mode 100644 index bc2b3dab84..0000000000 --- a/meta/packages/glibc/glibc-2.4/arm-memcpy.patch +++ /dev/null | |||
@@ -1,758 +0,0 @@ | |||
1 | --- /dev/null 2004-02-02 20:32:13.000000000 +0000 | ||
2 | +++ sysdeps/arm/memmove.S 2004-03-20 18:37:23.000000000 +0000 | ||
3 | @@ -0,0 +1,251 @@ | ||
4 | +/* | ||
5 | + * Optimized memmove implementation for ARM processors | ||
6 | + * | ||
7 | + * Author: Nicolas Pitre | ||
8 | + * Created: Dec 23, 2003 | ||
9 | + * Copyright: (C) MontaVista Software, Inc. | ||
10 | + * | ||
11 | + * This file is free software; you can redistribute it and/or | ||
12 | + * modify it under the terms of the GNU Lesser General Public | ||
13 | + * License as published by the Free Software Foundation; either | ||
14 | + * version 2.1 of the License, or (at your option) any later version. | ||
15 | + * | ||
16 | + * This file is distributed in the hope that it will be useful, | ||
17 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
19 | + * Lesser General Public License for more details. | ||
20 | + */ | ||
21 | + | ||
22 | +#include <sysdep.h> | ||
23 | + | ||
24 | + | ||
25 | +/* | ||
26 | + * Endian independent macros for shifting bytes within registers. | ||
27 | + */ | ||
28 | +#ifndef __ARMEB__ | ||
29 | +#define pull lsr | ||
30 | +#define push lsl | ||
31 | +#else | ||
32 | +#define pull lsl | ||
33 | +#define push lsr | ||
34 | +#endif | ||
35 | + | ||
36 | +/* | ||
37 | + * Enable data preload for architectures that support it (ARMv5 and above) | ||
38 | + */ | ||
39 | +#if defined(__ARM_ARCH_5__) || \ | ||
40 | + defined(__ARM_ARCH_5T__) || \ | ||
41 | + defined(__ARM_ARCH_5TE__) | ||
42 | +#define PLD(code...) code | ||
43 | +#else | ||
44 | +#define PLD(code...) | ||
45 | +#endif | ||
46 | + | ||
47 | + | ||
48 | +/* char * memmove (char *dst, const char *src) */ | ||
49 | +ENTRY(memmove) | ||
50 | + subs ip, r0, r1 | ||
51 | + cmphi r2, ip | ||
52 | + bls memcpy(PLT) | ||
53 | + | ||
54 | + stmfd sp!, {r0, r4, lr} | ||
55 | + add r1, r1, r2 | ||
56 | + add r0, r0, r2 | ||
57 | + subs r2, r2, #4 | ||
58 | + blt 25f | ||
59 | + ands ip, r0, #3 | ||
60 | + PLD( pld [r1, #-4] ) | ||
61 | + bne 26f | ||
62 | + ands ip, r1, #3 | ||
63 | + bne 27f | ||
64 | + | ||
65 | +19: subs r2, r2, #4 | ||
66 | + blt 24f | ||
67 | + subs r2, r2, #8 | ||
68 | + blt 23f | ||
69 | + subs r2, r2, #16 | ||
70 | + blt 22f | ||
71 | + | ||
72 | + PLD( pld [r1, #-32] ) | ||
73 | + PLD( subs r2, r2, #96 ) | ||
74 | + stmfd sp!, {r5 - r8} | ||
75 | + PLD( blt 21f ) | ||
76 | + | ||
77 | + PLD( @ cache alignment ) | ||
78 | + PLD( ands ip, r1, #31 ) | ||
79 | + PLD( pld [r1, #-64] ) | ||
80 | + PLD( beq 20f ) | ||
81 | + PLD( cmp r2, ip ) | ||
82 | + PLD( pld [r1, #-96] ) | ||
83 | + PLD( blt 20f ) | ||
84 | + PLD( cmp ip, #16 ) | ||
85 | + PLD( sub r2, r2, ip ) | ||
86 | + PLD( ldmgedb r1!, {r3 - r6} ) | ||
87 | + PLD( stmgedb r0!, {r3 - r6} ) | ||
88 | + PLD( beq 20f ) | ||
89 | + PLD( and ip, ip, #15 ) | ||
90 | + PLD( cmp ip, #8 ) | ||
91 | + PLD( ldr r3, [r1, #-4]! ) | ||
92 | + PLD( ldrge r4, [r1, #-4]! ) | ||
93 | + PLD( ldrgt r5, [r1, #-4]! ) | ||
94 | + PLD( str r3, [r0, #-4]! ) | ||
95 | + PLD( strge r4, [r0, #-4]! ) | ||
96 | + PLD( strgt r5, [r0, #-4]! ) | ||
97 | + | ||
98 | +20: PLD( pld [r1, #-96] ) | ||
99 | + PLD( pld [r1, #-128] ) | ||
100 | +21: ldmdb r1!, {r3, r4, ip, lr} | ||
101 | + subs r2, r2, #32 | ||
102 | + stmdb r0!, {r3, r4, ip, lr} | ||
103 | + ldmdb r1!, {r3, r4, ip, lr} | ||
104 | + stmgedb r0!, {r3, r4, ip, lr} | ||
105 | + ldmgedb r1!, {r3, r4, ip, lr} | ||
106 | + stmgedb r0!, {r3, r4, ip, lr} | ||
107 | + ldmgedb r1!, {r3, r4, ip, lr} | ||
108 | + subges r2, r2, #32 | ||
109 | + stmdb r0!, {r3, r4, ip, lr} | ||
110 | + bge 20b | ||
111 | + PLD( cmn r2, #96 ) | ||
112 | + PLD( bge 21b ) | ||
113 | + PLD( add r2, r2, #96 ) | ||
114 | + tst r2, #31 | ||
115 | + ldmfd sp!, {r5 - r8} | ||
116 | + ldmeqfd sp!, {r0, r4, pc} | ||
117 | + | ||
118 | + tst r2, #16 | ||
119 | +22: ldmnedb r1!, {r3, r4, ip, lr} | ||
120 | + stmnedb r0!, {r3, r4, ip, lr} | ||
121 | + | ||
122 | + tst r2, #8 | ||
123 | +23: ldmnedb r1!, {r3, r4} | ||
124 | + stmnedb r0!, {r3, r4} | ||
125 | + | ||
126 | + tst r2, #4 | ||
127 | +24: ldrne r3, [r1, #-4]! | ||
128 | + strne r3, [r0, #-4]! | ||
129 | + | ||
130 | +25: ands r2, r2, #3 | ||
131 | + ldmeqfd sp!, {r0, r4, pc} | ||
132 | + | ||
133 | + cmp r2, #2 | ||
134 | + ldrb r3, [r1, #-1] | ||
135 | + ldrgeb r4, [r1, #-2] | ||
136 | + ldrgtb ip, [r1, #-3] | ||
137 | + strb r3, [r0, #-1] | ||
138 | + strgeb r4, [r0, #-2] | ||
139 | + strgtb ip, [r0, #-3] | ||
140 | + ldmfd sp!, {r0, r4, pc} | ||
141 | + | ||
142 | +26: cmp ip, #2 | ||
143 | + ldrb r3, [r1, #-1]! | ||
144 | + ldrgeb r4, [r1, #-1]! | ||
145 | + ldrgtb lr, [r1, #-1]! | ||
146 | + strb r3, [r0, #-1]! | ||
147 | + strgeb r4, [r0, #-1]! | ||
148 | + strgtb lr, [r0, #-1]! | ||
149 | + subs r2, r2, ip | ||
150 | + blt 25b | ||
151 | + ands ip, r1, #3 | ||
152 | + beq 19b | ||
153 | + | ||
154 | +27: bic r1, r1, #3 | ||
155 | + cmp ip, #2 | ||
156 | + ldr r3, [r1] | ||
157 | + beq 35f | ||
158 | + blt 36f | ||
159 | + | ||
160 | + | ||
161 | + .macro backward_copy_shift push pull | ||
162 | + | ||
163 | + cmp r2, #12 | ||
164 | + PLD( pld [r1, #-4] ) | ||
165 | + blt 33f | ||
166 | + subs r2, r2, #28 | ||
167 | + stmfd sp!, {r5 - r9} | ||
168 | + blt 31f | ||
169 | + | ||
170 | + PLD( subs r2, r2, #96 ) | ||
171 | + PLD( pld [r1, #-32] ) | ||
172 | + PLD( blt 30f ) | ||
173 | + PLD( pld [r1, #-64] ) | ||
174 | + | ||
175 | + PLD( @ cache alignment ) | ||
176 | + PLD( ands ip, r1, #31 ) | ||
177 | + PLD( pld [r1, #-96] ) | ||
178 | + PLD( beq 29f ) | ||
179 | + PLD( cmp r2, ip ) | ||
180 | + PLD( pld [r1, #-128] ) | ||
181 | + PLD( blt 29f ) | ||
182 | + PLD( sub r2, r2, ip ) | ||
183 | +28: PLD( mov r4, r3, push #\push ) | ||
184 | + PLD( ldr r3, [r1, #-4]! ) | ||
185 | + PLD( subs ip, ip, #4 ) | ||
186 | + PLD( orr r4, r4, r3, pull #\pull ) | ||
187 | + PLD( str r4, [r0, #-4]! ) | ||
188 | + PLD( bgt 28b ) | ||
189 | + | ||
190 | +29: PLD( pld [r1, #-128] ) | ||
191 | +30: mov lr, r3, push #\push | ||
192 | + ldmdb r1!, {r3 - r9, ip} | ||
193 | + subs r2, r2, #32 | ||
194 | + orr lr, lr, ip, pull #\pull | ||
195 | + mov ip, ip, push #\push | ||
196 | + orr ip, ip, r9, pull #\pull | ||
197 | + mov r9, r9, push #\push | ||
198 | + orr r9, r9, r8, pull #\pull | ||
199 | + mov r8, r8, push #\push | ||
200 | + orr r8, r8, r7, pull #\pull | ||
201 | + mov r7, r7, push #\push | ||
202 | + orr r7, r7, r6, pull #\pull | ||
203 | + mov r6, r6, push #\push | ||
204 | + orr r6, r6, r5, pull #\pull | ||
205 | + mov r5, r5, push #\push | ||
206 | + orr r5, r5, r4, pull #\pull | ||
207 | + mov r4, r4, push #\push | ||
208 | + orr r4, r4, r3, pull #\pull | ||
209 | + stmdb r0!, {r4 - r9, ip, lr} | ||
210 | + bge 29b | ||
211 | + PLD( cmn r2, #96 ) | ||
212 | + PLD( bge 30b ) | ||
213 | + PLD( add r2, r2, #96 ) | ||
214 | + cmn r2, #16 | ||
215 | + blt 32f | ||
216 | +31: mov r7, r3, push #\push | ||
217 | + ldmdb r1!, {r3 - r6} | ||
218 | + sub r2, r2, #16 | ||
219 | + orr r7, r7, r6, pull #\pull | ||
220 | + mov r6, r6, push #\push | ||
221 | + orr r6, r6, r5, pull #\pull | ||
222 | + mov r5, r5, push #\push | ||
223 | + orr r5, r5, r4, pull #\pull | ||
224 | + mov r4, r4, push #\push | ||
225 | + orr r4, r4, r3, pull #\pull | ||
226 | + stmdb r0!, {r4 - r7} | ||
227 | +32: adds r2, r2, #28 | ||
228 | + ldmfd sp!, {r5 - r9} | ||
229 | + blt 34f | ||
230 | +33: mov r4, r3, push #\push | ||
231 | + ldr r3, [r1, #-4]! | ||
232 | + subs r2, r2, #4 | ||
233 | + orr r4, r4, r3, pull #\pull | ||
234 | + str r4, [r0, #-4]! | ||
235 | + bge 33b | ||
236 | +34: | ||
237 | + .endm | ||
238 | + | ||
239 | + | ||
240 | + backward_copy_shift push=8 pull=24 | ||
241 | + add r1, r1, #3 | ||
242 | + b 25b | ||
243 | + | ||
244 | +35: backward_copy_shift push=16 pull=16 | ||
245 | + add r1, r1, #2 | ||
246 | + b 25b | ||
247 | + | ||
248 | +36: backward_copy_shift push=24 pull=8 | ||
249 | + add r1, r1, #1 | ||
250 | + b 25b | ||
251 | + | ||
252 | + .size memmove, . - memmove | ||
253 | +END(memmove) | ||
254 | +libc_hidden_builtin_def (memmove) | ||
255 | --- /dev/null 2004-02-02 20:32:13.000000000 +0000 | ||
256 | +++ sysdeps/arm/bcopy.S 2004-03-20 18:37:48.000000000 +0000 | ||
257 | @@ -0,0 +1,255 @@ | ||
258 | +/* | ||
259 | + * Optimized memmove implementation for ARM processors | ||
260 | + * | ||
261 | + * Author: Nicolas Pitre | ||
262 | + * Created: Dec 23, 2003 | ||
263 | + * Copyright: (C) MontaVista Software, Inc. | ||
264 | + * | ||
265 | + * This file is free software; you can redistribute it and/or | ||
266 | + * modify it under the terms of the GNU Lesser General Public | ||
267 | + * License as published by the Free Software Foundation; either | ||
268 | + * version 2.1 of the License, or (at your option) any later version. | ||
269 | + * | ||
270 | + * This file is distributed in the hope that it will be useful, | ||
271 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
272 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
273 | + * Lesser General Public License for more details. | ||
274 | + */ | ||
275 | + | ||
276 | +#include <sysdep.h> | ||
277 | + | ||
278 | + | ||
279 | +/* | ||
280 | + * Endian independent macros for shifting bytes within registers. | ||
281 | + */ | ||
282 | +#ifndef __ARMEB__ | ||
283 | +#define pull lsr | ||
284 | +#define push lsl | ||
285 | +#else | ||
286 | +#define pull lsl | ||
287 | +#define push lsr | ||
288 | +#endif | ||
289 | + | ||
290 | +/* | ||
291 | + * Enable data preload for architectures that support it (ARMv5 and above) | ||
292 | + */ | ||
293 | +#if defined(__ARM_ARCH_5__) || \ | ||
294 | + defined(__ARM_ARCH_5T__) || \ | ||
295 | + defined(__ARM_ARCH_5TE__) | ||
296 | +#define PLD(code...) code | ||
297 | +#else | ||
298 | +#define PLD(code...) | ||
299 | +#endif | ||
300 | + | ||
301 | +dst .req r1 | ||
302 | +src .req r0 | ||
303 | + | ||
304 | +/* void *bcopy (const char *src, char *dst, size_t size) */ | ||
305 | +ENTRY(bcopy) | ||
306 | + subs ip, dst, src | ||
307 | + cmphi r2, ip | ||
308 | + movls r3, r0 | ||
309 | + movls r0, r1 | ||
310 | + movls r1, r3 | ||
311 | + bls memcpy(PLT) | ||
312 | + | ||
313 | + stmfd sp!, {r4, lr} | ||
314 | + add src, src, r2 | ||
315 | + add dst, dst, r2 | ||
316 | + subs r2, r2, #4 | ||
317 | + blt 25f | ||
318 | + ands ip, dst, #3 | ||
319 | + PLD( pld [src, #-4] ) | ||
320 | + bne 26f | ||
321 | + ands ip, src, #3 | ||
322 | + bne 27f | ||
323 | + | ||
324 | +19: subs r2, r2, #4 | ||
325 | + blt 24f | ||
326 | + subs r2, r2, #8 | ||
327 | + blt 23f | ||
328 | + subs r2, r2, #16 | ||
329 | + blt 22f | ||
330 | + | ||
331 | + PLD( pld [src, #-32] ) | ||
332 | + PLD( subs r2, r2, #96 ) | ||
333 | + stmfd sp!, {r5 - r8} | ||
334 | + PLD( blt 21f ) | ||
335 | + | ||
336 | + PLD( @ cache alignment ) | ||
337 | + PLD( ands ip, src, #31 ) | ||
338 | + PLD( pld [src, #-64] ) | ||
339 | + PLD( beq 20f ) | ||
340 | + PLD( cmp r2, ip ) | ||
341 | + PLD( pld [src, #-96] ) | ||
342 | + PLD( blt 20f ) | ||
343 | + PLD( cmp ip, #16 ) | ||
344 | + PLD( sub r2, r2, ip ) | ||
345 | + PLD( ldmgedb src!, {r3 - r6} ) | ||
346 | + PLD( stmgedb dst!, {r3 - r6} ) | ||
347 | + PLD( beq 20f ) | ||
348 | + PLD( and ip, ip, #15 ) | ||
349 | + PLD( cmp ip, #8 ) | ||
350 | + PLD( ldr r3, [src, #-4]! ) | ||
351 | + PLD( ldrge r4, [src, #-4]! ) | ||
352 | + PLD( ldrgt r5, [src, #-4]! ) | ||
353 | + PLD( str r3, [dst, #-4]! ) | ||
354 | + PLD( strge r4, [dst, #-4]! ) | ||
355 | + PLD( strgt r5, [dst, #-4]! ) | ||
356 | + | ||
357 | +20: PLD( pld [src, #-96] ) | ||
358 | + PLD( pld [src, #-128] ) | ||
359 | +21: ldmdb src!, {r3, r4, ip, lr} | ||
360 | + subs r2, r2, #32 | ||
361 | + stmdb dst!, {r3, r4, ip, lr} | ||
362 | + ldmdb src!, {r3, r4, ip, lr} | ||
363 | + stmgedb dst!, {r3, r4, ip, lr} | ||
364 | + ldmgedb src!, {r3, r4, ip, lr} | ||
365 | + stmgedb dst!, {r3, r4, ip, lr} | ||
366 | + ldmgedb src!, {r3, r4, ip, lr} | ||
367 | + subges r2, r2, #32 | ||
368 | + stmdb dst!, {r3, r4, ip, lr} | ||
369 | + bge 20b | ||
370 | + PLD( cmn r2, #96 ) | ||
371 | + PLD( bge 21b ) | ||
372 | + PLD( add r2, r2, #96 ) | ||
373 | + tst r2, #31 | ||
374 | + ldmfd sp!, {r5 - r8} | ||
375 | + ldmeqfd sp!, {r4, pc} | ||
376 | + | ||
377 | + tst r2, #16 | ||
378 | +22: ldmnedb src!, {r3, r4, ip, lr} | ||
379 | + stmnedb dst!, {r3, r4, ip, lr} | ||
380 | + | ||
381 | + tst r2, #8 | ||
382 | +23: ldmnedb src!, {r3, r4} | ||
383 | + stmnedb dst!, {r3, r4} | ||
384 | + | ||
385 | + tst r2, #4 | ||
386 | +24: ldrne r3, [src, #-4]! | ||
387 | + strne r3, [dst, #-4]! | ||
388 | + | ||
389 | +25: ands r2, r2, #3 | ||
390 | + ldmeqfd sp!, {dst, r4, pc} | ||
391 | + | ||
392 | + cmp r2, #2 | ||
393 | + ldrb r3, [src, #-1] | ||
394 | + ldrgeb r4, [src, #-2] | ||
395 | + ldrgtb ip, [src, #-3] | ||
396 | + strb r3, [dst, #-1] | ||
397 | + strgeb r4, [dst, #-2] | ||
398 | + strgtb ip, [dst, #-3] | ||
399 | + ldmfd sp!, {dst, r4, pc} | ||
400 | + | ||
401 | +26: cmp ip, #2 | ||
402 | + ldrb r3, [src, #-1]! | ||
403 | + ldrgeb r4, [src, #-1]! | ||
404 | + ldrgtb lr, [src, #-1]! | ||
405 | + strb r3, [dst, #-1]! | ||
406 | + strgeb r4, [dst, #-1]! | ||
407 | + strgtb lr, [dst, #-1]! | ||
408 | + subs r2, r2, ip | ||
409 | + blt 25b | ||
410 | + ands ip, src, #3 | ||
411 | + beq 19b | ||
412 | + | ||
413 | +27: bic src, src, #3 | ||
414 | + cmp ip, #2 | ||
415 | + ldr r3, [src] | ||
416 | + beq 35f | ||
417 | + blt 36f | ||
418 | + | ||
419 | + | ||
420 | + .macro backward_copy_shift push pull | ||
421 | + | ||
422 | + cmp r2, #12 | ||
423 | + PLD( pld [src, #-4] ) | ||
424 | + blt 33f | ||
425 | + subs r2, r2, #28 | ||
426 | + stmfd sp!, {r5 - r9} | ||
427 | + blt 31f | ||
428 | + | ||
429 | + PLD( subs r2, r2, #96 ) | ||
430 | + PLD( pld [src, #-32] ) | ||
431 | + PLD( blt 30f ) | ||
432 | + PLD( pld [src, #-64] ) | ||
433 | + | ||
434 | + PLD( @ cache alignment ) | ||
435 | + PLD( ands ip, src, #31 ) | ||
436 | + PLD( pld [src, #-96] ) | ||
437 | + PLD( beq 29f ) | ||
438 | + PLD( cmp r2, ip ) | ||
439 | + PLD( pld [src, #-128] ) | ||
440 | + PLD( blt 29f ) | ||
441 | + PLD( sub r2, r2, ip ) | ||
442 | +28: PLD( mov r4, r3, push #\push ) | ||
443 | + PLD( ldr r3, [src, #-4]! ) | ||
444 | + PLD( subs ip, ip, #4 ) | ||
445 | + PLD( orr r4, r4, r3, pull #\pull ) | ||
446 | + PLD( str r4, [dst, #-4]! ) | ||
447 | + PLD( bgt 28b ) | ||
448 | + | ||
449 | +29: PLD( pld [src, #-128] ) | ||
450 | +30: mov lr, r3, push #\push | ||
451 | + ldmdb src!, {r3 - r9, ip} | ||
452 | + subs r2, r2, #32 | ||
453 | + orr lr, lr, ip, pull #\pull | ||
454 | + mov ip, ip, push #\push | ||
455 | + orr ip, ip, r9, pull #\pull | ||
456 | + mov r9, r9, push #\push | ||
457 | + orr r9, r9, r8, pull #\pull | ||
458 | + mov r8, r8, push #\push | ||
459 | + orr r8, r8, r7, pull #\pull | ||
460 | + mov r7, r7, push #\push | ||
461 | + orr r7, r7, r6, pull #\pull | ||
462 | + mov r6, r6, push #\push | ||
463 | + orr r6, r6, r5, pull #\pull | ||
464 | + mov r5, r5, push #\push | ||
465 | + orr r5, r5, r4, pull #\pull | ||
466 | + mov r4, r4, push #\push | ||
467 | + orr r4, r4, r3, pull #\pull | ||
468 | + stmdb dst!, {r4 - r9, ip, lr} | ||
469 | + bge 29b | ||
470 | + PLD( cmn r2, #96 ) | ||
471 | + PLD( bge 30b ) | ||
472 | + PLD( add r2, r2, #96 ) | ||
473 | + cmn r2, #16 | ||
474 | + blt 32f | ||
475 | +31: mov r7, r3, push #\push | ||
476 | + ldmdb src!, {r3 - r6} | ||
477 | + sub r2, r2, #16 | ||
478 | + orr r7, r7, r6, pull #\pull | ||
479 | + mov r6, r6, push #\push | ||
480 | + orr r6, r6, r5, pull #\pull | ||
481 | + mov r5, r5, push #\push | ||
482 | + orr r5, r5, r4, pull #\pull | ||
483 | + mov r4, r4, push #\push | ||
484 | + orr r4, r4, r3, pull #\pull | ||
485 | + stmdb dst!, {r4 - r7} | ||
486 | +32: adds r2, r2, #28 | ||
487 | + ldmfd sp!, {r5 - r9} | ||
488 | + blt 34f | ||
489 | +33: mov r4, r3, push #\push | ||
490 | + ldr r3, [src, #-4]! | ||
491 | + subs r2, r2, #4 | ||
492 | + orr r4, r4, r3, pull #\pull | ||
493 | + str r4, [dst, #-4]! | ||
494 | + bge 33b | ||
495 | +34: | ||
496 | + .endm | ||
497 | + | ||
498 | + | ||
499 | + backward_copy_shift push=8 pull=24 | ||
500 | + add src, src, #3 | ||
501 | + b 25b | ||
502 | + | ||
503 | +35: backward_copy_shift push=16 pull=16 | ||
504 | + add src, src, #2 | ||
505 | + b 25b | ||
506 | + | ||
507 | +36: backward_copy_shift push=24 pull=8 | ||
508 | + add src, src, #1 | ||
509 | + b 25b | ||
510 | + | ||
511 | + .size bcopy, . - bcopy | ||
512 | +END(bcopy) | ||
513 | |||
514 | --- /dev/null 2004-02-02 20:32:13.000000000 +0000 | ||
515 | +++ sysdeps/arm/memcpy.S 2004-05-02 14:33:22.000000000 +0100 | ||
516 | @@ -0,0 +1,242 @@ | ||
517 | +/* | ||
518 | + * Optimized memcpy implementation for ARM processors | ||
519 | + * | ||
520 | + * Author: Nicolas Pitre | ||
521 | + * Created: Dec 23, 2003 | ||
522 | + * Copyright: (C) MontaVista Software, Inc. | ||
523 | + * | ||
524 | + * This file is free software; you can redistribute it and/or | ||
525 | + * modify it under the terms of the GNU Lesser General Public | ||
526 | + * License as published by the Free Software Foundation; either | ||
527 | + * version 2.1 of the License, or (at your option) any later version. | ||
528 | + * | ||
529 | + * This file is distributed in the hope that it will be useful, | ||
530 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
531 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
532 | + * Lesser General Public License for more details. | ||
533 | + */ | ||
534 | + | ||
535 | +#include <sysdep.h> | ||
536 | + | ||
537 | + | ||
538 | +/* | ||
539 | + * Endian independent macros for shifting bytes within registers. | ||
540 | + */ | ||
541 | +#ifndef __ARMEB__ | ||
542 | +#define pull lsr | ||
543 | +#define push lsl | ||
544 | +#else | ||
545 | +#define pull lsl | ||
546 | +#define push lsr | ||
547 | +#endif | ||
548 | + | ||
549 | +/* | ||
550 | + * Enable data preload for architectures that support it (ARMv5 and above) | ||
551 | + */ | ||
552 | +#if defined(__ARM_ARCH_5__) || \ | ||
553 | + defined(__ARM_ARCH_5T__) || \ | ||
554 | + defined(__ARM_ARCH_5TE__) | ||
555 | +#define PLD(code...) code | ||
556 | +#else | ||
557 | +#define PLD(code...) | ||
558 | +#endif | ||
559 | + | ||
560 | + | ||
561 | +/* char * memcpy (char *dst, const char *src) */ | ||
562 | + | ||
563 | +ENTRY(memcpy) | ||
564 | + subs r2, r2, #4 | ||
565 | + stmfd sp!, {r0, r4, lr} | ||
566 | + blt 7f | ||
567 | + ands ip, r0, #3 | ||
568 | + PLD( pld [r1, #0] ) | ||
569 | + bne 8f | ||
570 | + ands ip, r1, #3 | ||
571 | + bne 9f | ||
572 | + | ||
573 | +1: subs r2, r2, #4 | ||
574 | + blt 6f | ||
575 | + subs r2, r2, #8 | ||
576 | + blt 5f | ||
577 | + subs r2, r2, #16 | ||
578 | + blt 4f | ||
579 | + | ||
580 | + PLD( subs r2, r2, #65 ) | ||
581 | + stmfd sp!, {r5 - r8} | ||
582 | + PLD( blt 3f ) | ||
583 | + PLD( pld [r1, #32] ) | ||
584 | + | ||
585 | + PLD( @ cache alignment ) | ||
586 | + PLD( ands ip, r1, #31 ) | ||
587 | + PLD( pld [r1, #64] ) | ||
588 | + PLD( beq 2f ) | ||
589 | + PLD( rsb ip, ip, #32 ) | ||
590 | + PLD( cmp r2, ip ) | ||
591 | + PLD( pld [r1, #96] ) | ||
592 | + PLD( blt 2f ) | ||
593 | + PLD( cmp ip, #16 ) | ||
594 | + PLD( sub r2, r2, ip ) | ||
595 | + PLD( ldmgeia r1!, {r3 - r6} ) | ||
596 | + PLD( stmgeia r0!, {r3 - r6} ) | ||
597 | + PLD( beq 2f ) | ||
598 | + PLD( and ip, ip, #15 ) | ||
599 | + PLD( cmp ip, #8 ) | ||
600 | + PLD( ldr r3, [r1], #4 ) | ||
601 | + PLD( ldrge r4, [r1], #4 ) | ||
602 | + PLD( ldrgt r5, [r1], #4 ) | ||
603 | + PLD( str r3, [r0], #4 ) | ||
604 | + PLD( strge r4, [r0], #4 ) | ||
605 | + PLD( strgt r5, [r0], #4 ) | ||
606 | + | ||
607 | +2: PLD( pld [r1, #96] ) | ||
608 | +3: ldmia r1!, {r3 - r8, ip, lr} | ||
609 | + subs r2, r2, #32 | ||
610 | + stmia r0!, {r3 - r8, ip, lr} | ||
611 | + bge 2b | ||
612 | + PLD( cmn r2, #65 ) | ||
613 | + PLD( bge 3b ) | ||
614 | + PLD( add r2, r2, #65 ) | ||
615 | + tst r2, #31 | ||
616 | + ldmfd sp!, {r5 - r8} | ||
617 | + ldmeqfd sp!, {r0, r4, pc} | ||
618 | + | ||
619 | + tst r2, #16 | ||
620 | +4: ldmneia r1!, {r3, r4, ip, lr} | ||
621 | + stmneia r0!, {r3, r4, ip, lr} | ||
622 | + | ||
623 | + tst r2, #8 | ||
624 | +5: ldmneia r1!, {r3, r4} | ||
625 | + stmneia r0!, {r3, r4} | ||
626 | + | ||
627 | + tst r2, #4 | ||
628 | +6: ldrne r3, [r1], #4 | ||
629 | + strne r3, [r0], #4 | ||
630 | + | ||
631 | +7: ands r2, r2, #3 | ||
632 | + ldmeqfd sp!, {r0, r4, pc} | ||
633 | + | ||
634 | + cmp r2, #2 | ||
635 | + ldrb r3, [r1], #1 | ||
636 | + ldrgeb r4, [r1], #1 | ||
637 | + ldrgtb ip, [r1] | ||
638 | + strb r3, [r0], #1 | ||
639 | + strgeb r4, [r0], #1 | ||
640 | + strgtb ip, [r0] | ||
641 | + ldmfd sp!, {r0, r4, pc} | ||
642 | + | ||
643 | +8: rsb ip, ip, #4 | ||
644 | + cmp ip, #2 | ||
645 | + ldrb r3, [r1], #1 | ||
646 | + ldrgeb r4, [r1], #1 | ||
647 | + ldrgtb lr, [r1], #1 | ||
648 | + strb r3, [r0], #1 | ||
649 | + strgeb r4, [r0], #1 | ||
650 | + strgtb lr, [r0], #1 | ||
651 | + subs r2, r2, ip | ||
652 | + blt 7b | ||
653 | + ands ip, r1, #3 | ||
654 | + beq 1b | ||
655 | + | ||
656 | +9: bic r1, r1, #3 | ||
657 | + cmp ip, #2 | ||
658 | + ldr lr, [r1], #4 | ||
659 | + beq 17f | ||
660 | + bgt 18f | ||
661 | + | ||
662 | + | ||
663 | + .macro forward_copy_shift pull push | ||
664 | + | ||
665 | + cmp r2, #12 | ||
666 | + PLD( pld [r1, #0] ) | ||
667 | + blt 15f | ||
668 | + subs r2, r2, #28 | ||
669 | + stmfd sp!, {r5 - r9} | ||
670 | + blt 13f | ||
671 | + | ||
672 | + PLD( subs r2, r2, #97 ) | ||
673 | + PLD( blt 12f ) | ||
674 | + PLD( pld [r1, #32] ) | ||
675 | + | ||
676 | + PLD( @ cache alignment ) | ||
677 | + PLD( rsb ip, r1, #36 ) | ||
678 | + PLD( pld [r1, #64] ) | ||
679 | + PLD( ands ip, ip, #31 ) | ||
680 | + PLD( pld [r1, #96] ) | ||
681 | + PLD( beq 11f ) | ||
682 | + PLD( cmp r2, ip ) | ||
683 | + PLD( pld [r1, #128] ) | ||
684 | + PLD( blt 11f ) | ||
685 | + PLD( sub r2, r2, ip ) | ||
686 | +10: PLD( mov r3, lr, pull #\pull ) | ||
687 | + PLD( ldr lr, [r1], #4 ) | ||
688 | + PLD( subs ip, ip, #4 ) | ||
689 | + PLD( orr r3, r3, lr, push #\push ) | ||
690 | + PLD( str r3, [r0], #4 ) | ||
691 | + PLD( bgt 10b ) | ||
692 | + | ||
693 | +11: PLD( pld [r1, #128] ) | ||
694 | +12: mov r3, lr, pull #\pull | ||
695 | + ldmia r1!, {r4 - r9, ip, lr} | ||
696 | + subs r2, r2, #32 | ||
697 | + orr r3, r3, r4, push #\push | ||
698 | + mov r4, r4, pull #\pull | ||
699 | + orr r4, r4, r5, push #\push | ||
700 | + mov r5, r5, pull #\pull | ||
701 | + orr r5, r5, r6, push #\push | ||
702 | + mov r6, r6, pull #\pull | ||
703 | + orr r6, r6, r7, push #\push | ||
704 | + mov r7, r7, pull #\pull | ||
705 | + orr r7, r7, r8, push #\push | ||
706 | + mov r8, r8, pull #\pull | ||
707 | + orr r8, r8, r9, push #\push | ||
708 | + mov r9, r9, pull #\pull | ||
709 | + orr r9, r9, ip, push #\push | ||
710 | + mov ip, ip, pull #\pull | ||
711 | + orr ip, ip, lr, push #\push | ||
712 | + stmia r0!, {r3 - r9, ip} | ||
713 | + bge 11b | ||
714 | + PLD( cmn r2, #97 ) | ||
715 | + PLD( bge 12b ) | ||
716 | + PLD( add r2, r2, #97 ) | ||
717 | + cmn r2, #16 | ||
718 | + blt 14f | ||
719 | +13: mov r3, lr, pull #\pull | ||
720 | + ldmia r1!, {r4 - r6, lr} | ||
721 | + sub r2, r2, #16 | ||
722 | + orr r3, r3, r4, push #\push | ||
723 | + mov r4, r4, pull #\pull | ||
724 | + orr r4, r4, r5, push #\push | ||
725 | + mov r5, r5, pull #\pull | ||
726 | + orr r5, r5, r6, push #\push | ||
727 | + mov r6, r6, pull #\pull | ||
728 | + orr r6, r6, lr, push #\push | ||
729 | + stmia r0!, {r3 - r6} | ||
730 | +14: adds r2, r2, #28 | ||
731 | + ldmfd sp!, {r5 - r9} | ||
732 | + blt 16f | ||
733 | +15: mov r3, lr, pull #\pull | ||
734 | + ldr lr, [r1], #4 | ||
735 | + subs r2, r2, #4 | ||
736 | + orr r3, r3, lr, push #\push | ||
737 | + str r3, [r0], #4 | ||
738 | + bge 15b | ||
739 | +16: | ||
740 | + .endm | ||
741 | + | ||
742 | + | ||
743 | + forward_copy_shift pull=8 push=24 | ||
744 | + sub r1, r1, #3 | ||
745 | + b 7b | ||
746 | + | ||
747 | +17: forward_copy_shift pull=16 push=16 | ||
748 | + sub r1, r1, #2 | ||
749 | + b 7b | ||
750 | + | ||
751 | +18: forward_copy_shift pull=24 push=8 | ||
752 | + sub r1, r1, #1 | ||
753 | + b 7b | ||
754 | + | ||
755 | + .size memcpy, . - memcpy | ||
756 | +END(memcpy) | ||
757 | +libc_hidden_builtin_def (memcpy) | ||
758 | + | ||
diff --git a/meta/packages/glibc/glibc-2.4/arm_eabi_ipc_fix.patch b/meta/packages/glibc/glibc-2.4/arm_eabi_ipc_fix.patch deleted file mode 100644 index 8b36960b04..0000000000 --- a/meta/packages/glibc/glibc-2.4/arm_eabi_ipc_fix.patch +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | From libc-ports-return-430-listarch-libc-ports=sources dot redhat dot com at sourceware dot org Mon Aug 21 20:08:57 2006 | ||
2 | Return-Path: <libc-ports-return-430-listarch-libc-ports=sources dot redhat dot com at sourceware dot org> | ||
3 | Delivered-To: listarch-libc-ports at sources dot redhat dot com | ||
4 | Received: (qmail 9913 invoked by alias); 21 Aug 2006 20:08:56 -0000 | ||
5 | Received: (qmail 9893 invoked by uid 22791); 21 Aug 2006 20:08:53 -0000 | ||
6 | X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,TW_HM,TW_SG,TW_SN | ||
7 | X-Spam-Check-By: sourceware.org | ||
8 | Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 21 Aug 2006 20:08:44 +0000 | ||
9 | Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GFG4f-0007gO-TW for libc-ports@sourceware.org; Mon, 21 Aug 2006 16:08:42 -0400 | ||
10 | Date: Mon, 21 Aug 2006 16:08:41 -0400 | ||
11 | From: Daniel Jacobowitz <drow at false dot org> | ||
12 | To: libc-ports at sourceware dot org | ||
13 | Subject: ARM IPC fix | ||
14 | Message-ID: <20060821200841.GA29502@nevyn.them.org> | ||
15 | MIME-Version: 1.0 | ||
16 | Content-Type: text/plain; charset=us-ascii | ||
17 | Content-Disposition: inline | ||
18 | User-Agent: Mutt/1.5.11+cvs20060403 | ||
19 | X-IsSubscribed: yes | ||
20 | Mailing-List: contact libc-ports-help at sourceware dot org; run by ezmlm | ||
21 | Precedence: bulk | ||
22 | List-Subscribe: <mailto:libc-ports-subscribe at sourceware dot org> | ||
23 | List-Post: <mailto:libc-ports at sourceware dot org> | ||
24 | List-Help: <mailto:libc-ports-help at sourceware dot org>, <http://sourceware dot org/lists dot html#faqs> | ||
25 | Sender: libc-ports-owner at sourceware dot org | ||
26 | Delivered-To: mailing list libc-ports at sourceware dot org | ||
27 | |||
28 | We can't treat msgctl as a real syscall; if we don't add __IPC_64, we'll get | ||
29 | a mismatched type for ipc_perm. Fixed by using the Alpha implementation, | ||
30 | which is similar to the standard i386 implementation but doesn't use | ||
31 | the multiplexer syscall. | ||
32 | |||
33 | -- | ||
34 | Daniel Jacobowitz | ||
35 | CodeSourcery | ||
36 | |||
37 | 2006-08-21 Daniel Jacobowitz <dan@codesourcery.com> | ||
38 | |||
39 | * sysdeps/unix/sysv/linux/arm/eabi/syscalls.list: Remove msgctl, | ||
40 | shmctl, and semctl. | ||
41 | * sysdeps/unix/sysv/linux/arm/eabi/semctl.c, | ||
42 | sysdeps/unix/sysv/linux/arm/eabi/shmctl.c, | ||
43 | sysdeps/unix/sysv/linux/arm/eabi/msgctl.c: New files. | ||
44 | |||
45 | Index: a/ports/sysdeps/unix/sysv/linux/arm/eabi/syscalls.list | ||
46 | =================================================================== | ||
47 | --- a/ports/sysdeps/unix/sysv/linux/arm/eabi/syscalls.list (revision 147209) | ||
48 | +++ b/ports/sysdeps/unix/sysv/linux/arm/eabi/syscalls.list (working copy) | ||
49 | @@ -1,18 +1,16 @@ | ||
50 | # File name Caller Syscall name # args Strong name Weak names | ||
51 | |||
52 | -# semaphore and shm system calls | ||
53 | -msgctl - msgctl i:iip __msgctl msgctl | ||
54 | +# Semaphore and shm system calls. msgctl, shmctl, and semctl have C | ||
55 | +# wrappers (to set __IPC_64). | ||
56 | msgget - msgget i:ii __msgget msgget | ||
57 | msgrcv - msgrcv Ci:ibnii __msgrcv msgrcv | ||
58 | msgsnd - msgsnd Ci:ibni __msgsnd msgsnd | ||
59 | shmat - shmat i:ipi __shmat shmat | ||
60 | -shmctl - shmctl i:iip __shmctl shmctl | ||
61 | shmdt - shmdt i:s __shmdt shmdt | ||
62 | shmget - shmget i:iii __shmget shmget | ||
63 | semop - semop i:ipi __semop semop | ||
64 | semtimedop - semtimedop i:ipip semtimedop | ||
65 | semget - semget i:iii __semget semget | ||
66 | -semctl - semctl i:iiii __semctl semctl | ||
67 | |||
68 | # proper socket implementations: | ||
69 | accept - accept Ci:iBN __libc_accept __accept accept | ||
70 | |||
71 | Property changes on: sysdeps/unix/sysv/linux/arm/eabi/syscalls.list | ||
72 | ___________________________________________________________________ | ||
73 | Name: svn:mime-type | ||
74 | - application/octet-stream | ||
75 | |||
76 | Index: a/ports/sysdeps/unix/sysv/linux/arm/eabi/semctl.c | ||
77 | =================================================================== | ||
78 | --- a/ports/sysdeps/unix/sysv/linux/arm/eabi/semctl.c (revision 0) | ||
79 | +++ b/ports/sysdeps/unix/sysv/linux/arm/eabi/semctl.c (revision 0) | ||
80 | @@ -0,0 +1 @@ | ||
81 | +#include <sysdeps/unix/sysv/linux/alpha/semctl.c> | ||
82 | Index: a/ports/sysdeps/unix/sysv/linux/arm/eabi/msgctl.c | ||
83 | =================================================================== | ||
84 | --- a/ports/sysdeps/unix/sysv/linux/arm/eabi/msgctl.c (revision 0) | ||
85 | +++ b/ports/sysdeps/unix/sysv/linux/arm/eabi/msgctl.c (revision 0) | ||
86 | @@ -0,0 +1 @@ | ||
87 | +#include <sysdeps/unix/sysv/linux/alpha/msgctl.c> | ||
88 | Index: a/ports/sysdeps/unix/sysv/linux/arm/eabi/shmctl.c | ||
89 | =================================================================== | ||
90 | --- a/ports/sysdeps/unix/sysv/linux/arm/eabi/shmctl.c (revision 0) | ||
91 | +++ b/ports/sysdeps/unix/sysv/linux/arm/eabi/shmctl.c (revision 0) | ||
92 | @@ -0,0 +1 @@ | ||
93 | +#include <sysdeps/unix/sysv/linux/alpha/shmctl.c> | ||
94 | |||
diff --git a/meta/packages/glibc/glibc-2.4/dl-cache-libcmp.patch b/meta/packages/glibc/glibc-2.4/dl-cache-libcmp.patch deleted file mode 100644 index 2fedfa6db0..0000000000 --- a/meta/packages/glibc/glibc-2.4/dl-cache-libcmp.patch +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | --- glibc-2.4/elf/Versions.ark 2006-03-11 23:30:09.000000000 +0100 | ||
2 | +++ glibc-2.4/elf/Versions 2006-03-11 23:31:44.000000000 +0100 | ||
3 | @@ -63,5 +63,7 @@ | ||
4 | _dl_debug_state; | ||
5 | # Pointer protection. | ||
6 | __pointer_chk_guard; | ||
7 | + # for ldconfig | ||
8 | + _dl_cache_libcmp; | ||
9 | } | ||
10 | } | ||
diff --git a/meta/packages/glibc/glibc-2.4/dyn-ldconfig-20041128.patch b/meta/packages/glibc/glibc-2.4/dyn-ldconfig-20041128.patch deleted file mode 100644 index 451b6d4afc..0000000000 --- a/meta/packages/glibc/glibc-2.4/dyn-ldconfig-20041128.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- libc/elf/Makefile~dyn-ldconfig-20041128 | ||
7 | +++ libc/elf/Makefile | ||
8 | @@ -118,12 +118,13 @@ | ||
9 | |||
10 | ifeq (yes,$(use-ldconfig)) | ||
11 | ifeq (yes,$(build-shared)) | ||
12 | -others-static += ldconfig | ||
13 | +#others-static += ldconfig | ||
14 | others += ldconfig | ||
15 | install-rootsbin += ldconfig | ||
16 | |||
17 | ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon | ||
18 | extra-objs += $(ldconfig-modules:=.o) | ||
19 | +CPPFLAGS-readlib.c = -DNOT_IN_libc=1 | ||
20 | |||
21 | # To find xmalloc.c and xstrdup.c | ||
22 | vpath %.c ../locale/programs | ||
diff --git a/meta/packages/glibc/glibc-2.4/dyn-ldconfig.patch b/meta/packages/glibc/glibc-2.4/dyn-ldconfig.patch deleted file mode 100644 index 1041965d05..0000000000 --- a/meta/packages/glibc/glibc-2.4/dyn-ldconfig.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | --- elf/Makefile 13 Mar 2003 21:50:57 -0000 1.258 | ||
2 | +++ elf/Makefile 27 Mar 2003 20:36:07 -0000 | ||
3 | @@ -109,12 +109,13 @@ | ||
4 | |||
5 | ifeq (yes,$(use-ldconfig)) | ||
6 | ifeq (yes,$(build-shared)) | ||
7 | -others-static += ldconfig | ||
8 | +#others-static += ldconfig | ||
9 | others += ldconfig | ||
10 | install-rootsbin += ldconfig | ||
11 | |||
12 | ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon | ||
13 | extra-objs += $(ldconfig-modules:=.o) | ||
14 | +CPPFLAGS-readlib.c = -DNOT_IN_libc=1 | ||
15 | |||
16 | # To find xmalloc.c and xstrdup.c | ||
17 | vpath %.c ../locale/programs | ||
18 | --- elf/ldconfig.c 13 Jan 2003 08:53:14 -0000 1.31 | ||
19 | +++ elf/ldconfig.c 27 Mar 2003 20:36:09 -0000 | ||
20 | @@ -149,6 +149,9 @@ | ||
21 | static int | ||
22 | is_hwcap_platform (const char *name) | ||
23 | { | ||
24 | +#if 1 | ||
25 | + return 0; | ||
26 | +#else | ||
27 | int hwcap_idx = _dl_string_hwcap (name); | ||
28 | |||
29 | if (hwcap_idx != -1 && ((1 << hwcap_idx) & hwcap_mask)) | ||
30 | @@ -164,6 +167,7 @@ | ||
31 | #endif | ||
32 | |||
33 | return 0; | ||
34 | +#endif | ||
35 | } | ||
36 | |||
37 | /* Get hwcap (including platform) encoding of path. */ | ||
38 | @@ -175,6 +179,7 @@ | ||
39 | uint64_t hwcap = 0; | ||
40 | uint64_t h; | ||
41 | |||
42 | +#if 0 | ||
43 | size_t len; | ||
44 | |||
45 | len = strlen (str); | ||
46 | @@ -210,6 +215,7 @@ | ||
47 | *ptr = '\0'; | ||
48 | } | ||
49 | |||
50 | +#endif | ||
51 | free (str); | ||
52 | return hwcap; | ||
53 | } | ||
54 | --- elf/Versions.old 2004-06-26 13:18:35.000000000 +0100 | ||
55 | +++ elf/Versions 2004-06-26 14:41:09.000000000 +0100 | ||
56 | @@ -54,5 +54,6 @@ | ||
57 | _dl_get_tls_static_info; _dl_allocate_tls_init; | ||
58 | _dl_tls_setup; _dl_rtld_di_serinfo; | ||
59 | _dl_make_stack_executable; | ||
60 | + _dl_cache_libcmp; | ||
61 | } | ||
62 | } | ||
diff --git a/meta/packages/glibc/glibc-2.4/eabi_kernel_version_hack.patch b/meta/packages/glibc/glibc-2.4/eabi_kernel_version_hack.patch deleted file mode 100644 index a1af1a1563..0000000000 --- a/meta/packages/glibc/glibc-2.4/eabi_kernel_version_hack.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | --- | ||
2 | ports/sysdeps/unix/sysv/linux/arm/eabi/configure | 2 +- | ||
3 | ports/sysdeps/unix/sysv/linux/arm/eabi/configure.in | 2 +- | ||
4 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
5 | |||
6 | Index: glibc-2.5/ports/sysdeps/unix/sysv/linux/arm/eabi/configure | ||
7 | =================================================================== | ||
8 | --- glibc-2.5.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/configure 2007-12-20 17:39:25.000000000 +0000 | ||
9 | +++ glibc-2.5/ports/sysdeps/unix/sysv/linux/arm/eabi/configure 2007-12-20 17:39:30.000000000 +0000 | ||
10 | @@ -1,5 +1,5 @@ | ||
11 | # This file is generated from configure.in by Autoconf. DO NOT EDIT! | ||
12 | # Local configure fragment for sysdeps/unix/sysv/linux/arm/eabi. | ||
13 | |||
14 | -arch_minimum_kernel=2.6.14 | ||
15 | +arch_minimum_kernel=2.6.10 | ||
16 | libc_cv_gcc_unwind_find_fde=no | ||
17 | Index: glibc-2.5/ports/sysdeps/unix/sysv/linux/arm/eabi/configure.in | ||
18 | =================================================================== | ||
19 | --- glibc-2.5.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/configure.in 2007-12-20 17:39:27.000000000 +0000 | ||
20 | +++ glibc-2.5/ports/sysdeps/unix/sysv/linux/arm/eabi/configure.in 2007-12-20 17:39:36.000000000 +0000 | ||
21 | @@ -1,5 +1,5 @@ | ||
22 | GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. | ||
23 | # Local configure fragment for sysdeps/unix/sysv/linux/arm/eabi. | ||
24 | |||
25 | -arch_minimum_kernel=2.6.14 | ||
26 | +arch_minimum_kernel=2.6.10 | ||
27 | libc_cv_gcc_unwind_find_fde=no | ||
diff --git a/meta/packages/glibc/glibc-2.4/fixup-aeabi-syscalls.patch b/meta/packages/glibc/glibc-2.4/fixup-aeabi-syscalls.patch deleted file mode 100644 index fb733b9194..0000000000 --- a/meta/packages/glibc/glibc-2.4/fixup-aeabi-syscalls.patch +++ /dev/null | |||
@@ -1,329 +0,0 @@ | |||
1 | Fix up ARM EABI for removed syscalls | ||
2 | http://sourceware.org/ml/libc-ports/2006-03/msg00029.html | ||
3 | |||
4 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/socket.S | ||
5 | =================================================================== | ||
6 | --- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/socket.S 2006-03-21 15:58:10.000000000 -0500 | ||
7 | +++ /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
8 | @@ -1,131 +0,0 @@ | ||
9 | -/* Copyright (C) 1995, 1996, 1997, 1998, 2003, 2005 | ||
10 | - Free Software Foundation, Inc. | ||
11 | - This file is part of the GNU C Library. | ||
12 | - | ||
13 | - The GNU C Library is free software; you can redistribute it and/or | ||
14 | - modify it under the terms of the GNU Lesser General Public | ||
15 | - License as published by the Free Software Foundation; either | ||
16 | - version 2.1 of the License, or (at your option) any later version. | ||
17 | - | ||
18 | - The GNU C Library is distributed in the hope that it will be useful, | ||
19 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
21 | - Lesser General Public License for more details. | ||
22 | - | ||
23 | - You should have received a copy of the GNU Lesser General Public | ||
24 | - License along with the GNU C Library; if not, write to the Free | ||
25 | - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
26 | - 02111-1307 USA. */ | ||
27 | - | ||
28 | -#include <sysdep-cancel.h> | ||
29 | -#include <socketcall.h> | ||
30 | - | ||
31 | -#define P(a, b) P2(a, b) | ||
32 | -#define P2(a, b) a##b | ||
33 | - | ||
34 | - .text | ||
35 | -/* The socket-oriented system calls are handled unusally in Linux. | ||
36 | - They are all gated through the single `socketcall' system call number. | ||
37 | - `socketcall' takes two arguments: the first is the subcode, specifying | ||
38 | - which socket function is being called; and the second is a pointer to | ||
39 | - the arguments to the specific function. | ||
40 | - | ||
41 | - The .S files for the other calls just #define socket and #include this. */ | ||
42 | - | ||
43 | -#ifndef __socket | ||
44 | -# ifndef NO_WEAK_ALIAS | ||
45 | -# define __socket P(__,socket) | ||
46 | -# else | ||
47 | -# define __socket socket | ||
48 | -# endif | ||
49 | -#endif | ||
50 | - | ||
51 | -#define PUSHARGS_1 str a1, [sp, $-8]!; .pad #8 | ||
52 | -#define PUSHARGS_2 stmfd sp!, {a1, a2}; .pad #8 | ||
53 | -#define PUSHARGS_3 stmfd sp!, {a1, a2, a3, a4}; .pad #16 /* a4 pushed for padding */ | ||
54 | -#define PUSHARGS_4 stmfd sp!, {a1, a2, a3, a4}; .pad #16 | ||
55 | -#define PUSHARGS_5 stmfd sp!, {a1, a2, a3, a4}; .pad #16 /* Caller has already pushed arg 5 */ | ||
56 | -#define PUSHARGS_6 stmfd sp!, {a1, a2, a3, a4}; .pad #16 | ||
57 | - | ||
58 | -#define POPARGS_1 add sp, sp, #8 | ||
59 | -#define POPARGS_2 add sp, sp, #8 | ||
60 | -#define POPARGS_3 add sp, sp, #16 | ||
61 | -#define POPARGS_4 add sp, sp, #16 | ||
62 | -#define POPARGS_5 add sp, sp, #16 | ||
63 | -#define POPARGS_6 add sp, sp, #16 | ||
64 | - | ||
65 | -#ifndef NARGS | ||
66 | -#define NARGS 3 /* If we were called with no wrapper, this is really socket() */ | ||
67 | -#endif | ||
68 | - | ||
69 | -#if defined NEED_CANCELLATION && defined CENABLE | ||
70 | - PSEUDO_PROLOGUE | ||
71 | -#endif | ||
72 | - | ||
73 | -.globl __socket | ||
74 | -ENTRY (__socket) | ||
75 | - .fnstart | ||
76 | - | ||
77 | - /* This code previously moved sp into ip and stored the args using | ||
78 | - stmdb ip!, {a1-a4}. It did not modify sp, so the stack never had | ||
79 | - to be restored after the syscall completed. It saved an | ||
80 | - instruction and meant no stack cleanup work was required. | ||
81 | - | ||
82 | - This will not work in the case of a socket call being interrupted | ||
83 | - by a signal. If the signal handler uses any stack the arguments | ||
84 | - to socket will be trashed. The results of a restart of any | ||
85 | - socket call are then unpredictable. */ | ||
86 | - | ||
87 | - /* Push args onto the stack. */ | ||
88 | - P(PUSHARGS_,NARGS) | ||
89 | - | ||
90 | -#if defined NEED_CANCELLATION && defined CENABLE | ||
91 | - SINGLE_THREAD_P | ||
92 | - bne 1f | ||
93 | -#endif | ||
94 | - | ||
95 | - /* Do the system call trap. */ | ||
96 | - mov a1, $P(SOCKOP_,socket) | ||
97 | - mov a2, sp | ||
98 | - DO_CALL (socketcall, 0) | ||
99 | - | ||
100 | - /* Pop args off the stack */ | ||
101 | - P(POPARGS_,NARGS) | ||
102 | - | ||
103 | - /* r0 is < 0 if there was an error. */ | ||
104 | - cmn r0, $124 | ||
105 | - RETINSTR(cc, r14) | ||
106 | - b PLTJMP(SYSCALL_ERROR) | ||
107 | - | ||
108 | -#if defined NEED_CANCELLATION && defined CENABLE | ||
109 | -1: | ||
110 | - stmfd sp!, {r7, lr} | ||
111 | - .save {r7, lr} | ||
112 | - CENABLE | ||
113 | - mov ip, r0 | ||
114 | - | ||
115 | - mov r0, #P(SOCKOP_,socket) | ||
116 | - add r1, sp, #8 | ||
117 | - mov r7, #SYS_ify(socketcall) | ||
118 | - swi 0x0 | ||
119 | - | ||
120 | - mov r7, r0 | ||
121 | - mov r0, ip | ||
122 | - CDISABLE | ||
123 | - mov r0, r7 | ||
124 | - ldmfd sp!, {r7, lr} | ||
125 | - | ||
126 | - P(POPARGS_,NARGS) | ||
127 | - | ||
128 | - /* r0 is < 0 if there was an error. */ | ||
129 | - cmn r0, $124 | ||
130 | - RETINSTR(cc, r14) | ||
131 | - b PLTJMP(SYSCALL_ERROR) | ||
132 | -#endif | ||
133 | - | ||
134 | - .fnend | ||
135 | -PSEUDO_END (__socket) | ||
136 | - | ||
137 | -#ifndef NO_WEAK_ALIAS | ||
138 | -weak_alias (__socket, socket) | ||
139 | -#endif | ||
140 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/syscalls.list | ||
141 | =================================================================== | ||
142 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
143 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/syscalls.list 2006-03-21 15:58:46.000000000 -0500 | ||
144 | @@ -0,0 +1,34 @@ | ||
145 | +# File name Caller Syscall name # args Strong name Weak names | ||
146 | + | ||
147 | +# semaphore and shm system calls | ||
148 | +msgctl - msgctl i:iip __msgctl msgctl | ||
149 | +msgget - msgget i:ii __msgget msgget | ||
150 | +msgrcv - msgrcv Ci:ibnii __msgrcv msgrcv | ||
151 | +msgsnd - msgsnd Ci:ibni __msgsnd msgsnd | ||
152 | +shmat - shmat i:ipi __shmat shmat | ||
153 | +shmctl - shmctl i:iip __shmctl shmctl | ||
154 | +shmdt - shmdt i:s __shmdt shmdt | ||
155 | +shmget - shmget i:iii __shmget shmget | ||
156 | +semop - semop i:ipi __semop semop | ||
157 | +semtimedop - semtimedop i:ipip semtimedop | ||
158 | +semget - semget i:iii __semget semget | ||
159 | +semctl - semctl i:iiii __semctl semctl | ||
160 | + | ||
161 | +# proper socket implementations: | ||
162 | +accept - accept Ci:iBN __libc_accept __accept accept | ||
163 | +bind - bind i:ipi __bind bind | ||
164 | +connect - connect Ci:ipi __libc_connect __connect_internal __connect connect | ||
165 | +getpeername - getpeername i:ipp __getpeername getpeername | ||
166 | +getsockname - getsockname i:ipp __getsockname getsockname | ||
167 | +getsockopt - getsockopt i:iiiBN __getsockopt getsockopt | ||
168 | +listen - listen i:ii __listen listen | ||
169 | +recv - recv Ci:ibni __libc_recv __recv recv | ||
170 | +recvfrom - recvfrom Ci:ibniBN __libc_recvfrom __recvfrom recvfrom | ||
171 | +recvmsg - recvmsg Ci:ipi __libc_recvmsg __recvmsg recvmsg | ||
172 | +send - send Ci:ibni __libc_send __send send | ||
173 | +sendmsg - sendmsg Ci:ipi __libc_sendmsg __sendmsg sendmsg | ||
174 | +sendto - sendto Ci:ibnibn __libc_sendto __sendto sendto | ||
175 | +setsockopt - setsockopt i:iiibn __setsockopt setsockopt | ||
176 | +shutdown - shutdown i:ii __shutdown shutdown | ||
177 | +socket - socket i:iii __socket socket | ||
178 | +socketpair - socketpair i:iiif __socketpair socketpair | ||
179 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/linuxthreads/sysdep-cancel.h | ||
180 | =================================================================== | ||
181 | --- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/linuxthreads/sysdep-cancel.h 2006-03-21 15:58:10.000000000 -0500 | ||
182 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/linuxthreads/sysdep-cancel.h 2006-03-21 15:58:46.000000000 -0500 | ||
183 | @@ -53,9 +53,9 @@ | ||
184 | UNDOARGS_##args; \ | ||
185 | cmn r0, $4096; | ||
186 | |||
187 | -/* DOARGS pushes four bytes on the stack for five arguments, and nothing | ||
188 | - otherwise. In order to preserve doubleword alignment, sometimes we must | ||
189 | - save an extra register. */ | ||
190 | +/* DOARGS pushes four bytes on the stack for five arguments, eight bytes for | ||
191 | + six arguments, and nothing for fewer. In order to preserve doubleword | ||
192 | + alignment, sometimes we must save an extra register. */ | ||
193 | |||
194 | # define DOCARGS_0 stmfd sp!, {r7, lr} | ||
195 | # define UNDOCARGS_0 | ||
196 | @@ -81,6 +81,10 @@ | ||
197 | # define UNDOCARGS_5 ldmfd sp!, {r0, r1, r2, r3} | ||
198 | # define RESTORE_LR_5 ldmfd sp!, {r4, r7, lr} | ||
199 | |||
200 | +# define DOCARGS_6 stmfd sp!, {r0, r1, r2, r3, r7, lr} | ||
201 | +# define UNDOCARGS_6 ldmfd sp!, {r0, r1, r2, r3} | ||
202 | +# define RESTORE_LR_6 RESTORE_LR_0 | ||
203 | + | ||
204 | # ifdef IS_IN_libpthread | ||
205 | # define CENABLE bl PLTJMP(__pthread_enable_asynccancel) | ||
206 | # define CDISABLE bl PLTJMP(__pthread_disable_asynccancel) | ||
207 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h | ||
208 | =================================================================== | ||
209 | --- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h 2006-03-21 15:58:10.000000000 -0500 | ||
210 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h 2006-03-21 15:58:46.000000000 -0500 | ||
211 | @@ -64,9 +64,9 @@ | ||
212 | UNDOARGS_##args; \ | ||
213 | cmn r0, $4096; | ||
214 | |||
215 | -/* DOARGS pushes four bytes on the stack for five arguments, and nothing | ||
216 | - otherwise. In order to preserve doubleword alignment, sometimes we must | ||
217 | - save an extra register. */ | ||
218 | +/* DOARGS pushes four bytes on the stack for five arguments, eight bytes for | ||
219 | + six arguments, and nothing for fewer. In order to preserve doubleword | ||
220 | + alignment, sometimes we must save an extra register. */ | ||
221 | |||
222 | # define RESTART_UNWIND .fnend; .fnstart; .save {r7, lr} | ||
223 | |||
224 | @@ -94,6 +94,10 @@ | ||
225 | # define UNDOCARGS_5 ldmfd sp!, {r0, r1, r2, r3}; .fnend; .fnstart; .save {r4}; .save {r7, lr}; .pad #4 | ||
226 | # define RESTORE_LR_5 ldmfd sp!, {r4, r7, lr} | ||
227 | |||
228 | +# define DOCARGS_6 .save {r4, r5}; stmfd sp!, {r0, r1, r2, r3, r7, lr}; .save {r7, lr}; .pad #20 | ||
229 | +# define UNDOCARGS_6 ldmfd sp!, {r0, r1, r2, r3}; .fnend; .fnstart; .save {r4, r5}; .save {r7, lr} | ||
230 | +# define RESTORE_LR_6 RESTORE_LR_0 | ||
231 | + | ||
232 | # ifdef IS_IN_libpthread | ||
233 | # define CENABLE bl PLTJMP(__pthread_enable_asynccancel) | ||
234 | # define CDISABLE bl PLTJMP(__pthread_disable_asynccancel) | ||
235 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h | ||
236 | =================================================================== | ||
237 | --- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h 2006-03-21 15:58:10.000000000 -0500 | ||
238 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h 2006-03-21 15:58:46.000000000 -0500 | ||
239 | @@ -1,4 +1,4 @@ | ||
240 | -/* Copyright (C) 2005 | ||
241 | +/* Copyright (C) 2005, 2006 | ||
242 | Free Software Foundation, Inc. | ||
243 | |||
244 | This file is part of the GNU C Library. | ||
245 | @@ -29,6 +29,12 @@ | ||
246 | # error Kernel headers are too old | ||
247 | #endif | ||
248 | |||
249 | +/* Don't use stime, even if the kernel headers define it. We have | ||
250 | + settimeofday, and some EABI kernels have removed stime. Similarly | ||
251 | + use setitimer to implement alarm. */ | ||
252 | +#undef __NR_stime | ||
253 | +#undef __NR_alarm | ||
254 | + | ||
255 | /* The ARM EABI user interface passes the syscall number in r7, instead | ||
256 | of in the swi. This is more efficient, because the kernel does not need | ||
257 | to fetch the swi from memory to find out the number; which can be painful | ||
258 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/umount.c | ||
259 | =================================================================== | ||
260 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
261 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/umount.c 2006-03-21 15:58:46.000000000 -0500 | ||
262 | @@ -0,0 +1,31 @@ | ||
263 | +/* Copyright (C) 2000, 2001 Free Software Foundation, Inc. | ||
264 | + This file is part of the GNU C Library. | ||
265 | + Contributed by David Huggins-Daines <dhd@debian.org>, 2000. | ||
266 | + | ||
267 | + The GNU C Library is free software; you can redistribute it and/or | ||
268 | + modify it under the terms of the GNU Lesser General Public | ||
269 | + License as published by the Free Software Foundation; either | ||
270 | + version 2.1 of the License, or (at your option) any later version. | ||
271 | + | ||
272 | + The GNU C Library is distributed in the hope that it will be useful, | ||
273 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
274 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
275 | + Lesser General Public License for more details. | ||
276 | + | ||
277 | + You should have received a copy of the GNU Lesser General Public | ||
278 | + License along with the GNU C Library; if not, write to the Free | ||
279 | + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
280 | + 02111-1307 USA. */ | ||
281 | + | ||
282 | +/* Since we don't have an oldumount system call, do what the kernel | ||
283 | + does down here. */ | ||
284 | + | ||
285 | +extern long int __umount2 (const char *name, int flags); | ||
286 | + | ||
287 | +long int | ||
288 | +__umount (const char *name) | ||
289 | +{ | ||
290 | + return __umount2 (name, 0); | ||
291 | +} | ||
292 | + | ||
293 | +weak_alias (__umount, umount); | ||
294 | Index: glibc/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h | ||
295 | =================================================================== | ||
296 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
297 | +++ glibc/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h 2006-03-20 17:26:58.000000000 -0500 | ||
298 | @@ -0,0 +1,31 @@ | ||
299 | +/* Set flags signalling availability of kernel features based on given | ||
300 | + kernel version number. | ||
301 | + Copyright (C) 2006 Free Software Foundation, Inc. | ||
302 | + This file is part of the GNU C Library. | ||
303 | + | ||
304 | + The GNU C Library is free software; you can redistribute it and/or | ||
305 | + modify it under the terms of the GNU Lesser General Public | ||
306 | + License as published by the Free Software Foundation; either | ||
307 | + version 2.1 of the License, or (at your option) any later version. | ||
308 | + | ||
309 | + The GNU C Library is distributed in the hope that it will be useful, | ||
310 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
311 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
312 | + Lesser General Public License for more details. | ||
313 | + | ||
314 | + You should have received a copy of the GNU Lesser General Public | ||
315 | + License along with the GNU C Library; if not, write to the Free | ||
316 | + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
317 | + 02111-1307 USA. */ | ||
318 | + | ||
319 | +/* The utimes syscall was added before 2.6.1. */ | ||
320 | +#if __LINUX_KERNEL_VERSION >= 132609 | ||
321 | +# define __ASSUME_UTIMES 1 | ||
322 | +#endif | ||
323 | + | ||
324 | +/* The new getrlimit syscall was added sometime before 2.4.6. */ | ||
325 | +#if __LINUX_KERNEL_VERSION >= 132102 | ||
326 | +#define __ASSUME_NEW_GETRLIMIT_SYSCALL 1 | ||
327 | +#endif | ||
328 | + | ||
329 | +#include_next <kernel-features.h> | ||
diff --git a/meta/packages/glibc/glibc-2.4/generic-bits_select.h b/meta/packages/glibc/glibc-2.4/generic-bits_select.h deleted file mode 100644 index 47e7dedc30..0000000000 --- a/meta/packages/glibc/glibc-2.4/generic-bits_select.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc. | ||
2 | This file is part of the GNU C Library. | ||
3 | |||
4 | The GNU C Library is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU Lesser General Public | ||
6 | License as published by the Free Software Foundation; either | ||
7 | version 2.1 of the License, or (at your option) any later version. | ||
8 | |||
9 | The GNU C Library is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | Lesser General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU Lesser General Public | ||
15 | License along with the GNU C Library; if not, write to the Free | ||
16 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
17 | 02111-1307 USA. */ | ||
18 | |||
19 | #ifndef _SYS_SELECT_H | ||
20 | # error "Never use <bits/select.h> directly; include <sys/select.h> instead." | ||
21 | #endif | ||
22 | |||
23 | |||
24 | /* We don't use `memset' because this would require a prototype and | ||
25 | the array isn't too big. */ | ||
26 | #define __FD_ZERO(s) \ | ||
27 | do { \ | ||
28 | unsigned int __i; \ | ||
29 | fd_set *__arr = (s); \ | ||
30 | for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \ | ||
31 | __FDS_BITS (__arr)[__i] = 0; \ | ||
32 | } while (0) | ||
33 | #define __FD_SET(d, s) (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d)) | ||
34 | #define __FD_CLR(d, s) (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d)) | ||
35 | #define __FD_ISSET(d, s) ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0) | ||
diff --git a/meta/packages/glibc/glibc-2.4/generic-bits_time.h b/meta/packages/glibc/glibc-2.4/generic-bits_time.h deleted file mode 100644 index b3184d1de9..0000000000 --- a/meta/packages/glibc/glibc-2.4/generic-bits_time.h +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | /* System-dependent timing definitions. Generic version. | ||
2 | Copyright (C) 1996,1997,1999-2002,2003 Free Software Foundation, Inc. | ||
3 | This file is part of the GNU C Library. | ||
4 | |||
5 | The GNU C Library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | The GNU C Library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with the GNU C Library; if not, write to the Free | ||
17 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
18 | 02111-1307 USA. */ | ||
19 | |||
20 | /* | ||
21 | * Never include this file directly; use <time.h> instead. | ||
22 | */ | ||
23 | |||
24 | #ifndef __need_timeval | ||
25 | # ifndef _BITS_TIME_H | ||
26 | # define _BITS_TIME_H 1 | ||
27 | |||
28 | /* ISO/IEC 9899:1990 7.12.1: <time.h> | ||
29 | The macro `CLOCKS_PER_SEC' is the number per second of the value | ||
30 | returned by the `clock' function. */ | ||
31 | /* CAE XSH, Issue 4, Version 2: <time.h> | ||
32 | The value of CLOCKS_PER_SEC is required to be 1 million on all | ||
33 | XSI-conformant systems. */ | ||
34 | # define CLOCKS_PER_SEC 1000000l | ||
35 | |||
36 | # if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K | ||
37 | /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK | ||
38 | presents the real value for clock ticks per second for the system. */ | ||
39 | # include <bits/types.h> | ||
40 | extern long int __sysconf (int); | ||
41 | # define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */ | ||
42 | # endif | ||
43 | |||
44 | # ifdef __USE_POSIX199309 | ||
45 | /* Identifier for system-wide realtime clock. */ | ||
46 | # define CLOCK_REALTIME 0 | ||
47 | /* Monotonic system-wide clock. */ | ||
48 | # define CLOCK_MONOTONIC 1 | ||
49 | /* High-resolution timer from the CPU. */ | ||
50 | # define CLOCK_PROCESS_CPUTIME_ID 2 | ||
51 | /* Thread-specific CPU-time clock. */ | ||
52 | # define CLOCK_THREAD_CPUTIME_ID 3 | ||
53 | |||
54 | /* Flag to indicate time is absolute. */ | ||
55 | # define TIMER_ABSTIME 1 | ||
56 | # endif | ||
57 | |||
58 | # endif /* bits/time.h */ | ||
59 | #endif | ||
60 | |||
61 | #ifdef __need_timeval | ||
62 | # undef __need_timeval | ||
63 | # ifndef _STRUCT_TIMEVAL | ||
64 | # define _STRUCT_TIMEVAL 1 | ||
65 | # include <bits/types.h> | ||
66 | |||
67 | /* A time value that is accurate to the nearest | ||
68 | microsecond but also has a range of years. */ | ||
69 | struct timeval | ||
70 | { | ||
71 | __time_t tv_sec; /* Seconds. */ | ||
72 | __suseconds_t tv_usec; /* Microseconds. */ | ||
73 | }; | ||
74 | # endif /* struct timeval */ | ||
75 | #endif /* need timeval */ | ||
diff --git a/meta/packages/glibc/glibc-2.4/generic-bits_types.h b/meta/packages/glibc/glibc-2.4/generic-bits_types.h deleted file mode 100644 index 65c8a9fe90..0000000000 --- a/meta/packages/glibc/glibc-2.4/generic-bits_types.h +++ /dev/null | |||
@@ -1,200 +0,0 @@ | |||
1 | /* bits/types.h -- definitions of __*_t types underlying *_t types. | ||
2 | Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | ||
3 | This file is part of the GNU C Library. | ||
4 | |||
5 | The GNU C Library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | The GNU C Library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with the GNU C Library; if not, write to the Free | ||
17 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
18 | 02111-1307 USA. */ | ||
19 | |||
20 | /* | ||
21 | * Never include this file directly; use <sys/types.h> instead. | ||
22 | */ | ||
23 | |||
24 | #ifndef _BITS_TYPES_H | ||
25 | #define _BITS_TYPES_H 1 | ||
26 | |||
27 | #include <features.h> | ||
28 | #include <bits/wordsize.h> | ||
29 | |||
30 | #define __need_size_t | ||
31 | #include <stddef.h> | ||
32 | |||
33 | /* Convenience types. */ | ||
34 | typedef unsigned char __u_char; | ||
35 | typedef unsigned short int __u_short; | ||
36 | typedef unsigned int __u_int; | ||
37 | typedef unsigned long int __u_long; | ||
38 | |||
39 | /* Fixed-size types, underlying types depend on word size and compiler. */ | ||
40 | typedef signed char __int8_t; | ||
41 | typedef unsigned char __uint8_t; | ||
42 | typedef signed short int __int16_t; | ||
43 | typedef unsigned short int __uint16_t; | ||
44 | typedef signed int __int32_t; | ||
45 | typedef unsigned int __uint32_t; | ||
46 | #if __WORDSIZE == 64 | ||
47 | typedef signed long int __int64_t; | ||
48 | typedef unsigned long int __uint64_t; | ||
49 | #elif defined __GLIBC_HAVE_LONG_LONG | ||
50 | __extension__ typedef signed long long int __int64_t; | ||
51 | __extension__ typedef unsigned long long int __uint64_t; | ||
52 | #endif | ||
53 | |||
54 | /* quad_t is also 64 bits. */ | ||
55 | #if __WORDSIZE == 64 | ||
56 | typedef long int __quad_t; | ||
57 | typedef unsigned long int __u_quad_t; | ||
58 | #elif defined __GLIBC_HAVE_LONG_LONG | ||
59 | __extension__ typedef long long int __quad_t; | ||
60 | __extension__ typedef unsigned long long int __u_quad_t; | ||
61 | #else | ||
62 | typedef struct | ||
63 | { | ||
64 | long __val[2]; | ||
65 | } __quad_t; | ||
66 | typedef struct | ||
67 | { | ||
68 | __u_long __val[2]; | ||
69 | } __u_quad_t; | ||
70 | #endif | ||
71 | |||
72 | |||
73 | /* The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE | ||
74 | macros for each of the OS types we define below. The definitions | ||
75 | of those macros must use the following macros for underlying types. | ||
76 | We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned | ||
77 | variants of each of the following integer types on this machine. | ||
78 | |||
79 | 16 -- "natural" 16-bit type (always short) | ||
80 | 32 -- "natural" 32-bit type (always int) | ||
81 | 64 -- "natural" 64-bit type (long or long long) | ||
82 | LONG32 -- 32-bit type, traditionally long | ||
83 | QUAD -- 64-bit type, always long long | ||
84 | WORD -- natural type of __WORDSIZE bits (int or long) | ||
85 | LONGWORD -- type of __WORDSIZE bits, traditionally long | ||
86 | |||
87 | We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the | ||
88 | conventional uses of `long' or `long long' type modifiers match the | ||
89 | types we define, even when a less-adorned type would be the same size. | ||
90 | This matters for (somewhat) portably writing printf/scanf formats for | ||
91 | these types, where using the appropriate l or ll format modifiers can | ||
92 | make the typedefs and the formats match up across all GNU platforms. If | ||
93 | we used `long' when it's 64 bits where `long long' is expected, then the | ||
94 | compiler would warn about the formats not matching the argument types, | ||
95 | and the programmer changing them to shut up the compiler would break the | ||
96 | program's portability. | ||
97 | |||
98 | Here we assume what is presently the case in all the GCC configurations | ||
99 | we support: long long is always 64 bits, long is always word/address size, | ||
100 | and int is always 32 bits. */ | ||
101 | |||
102 | #define __S16_TYPE short int | ||
103 | #define __U16_TYPE unsigned short int | ||
104 | #define __S32_TYPE int | ||
105 | #define __U32_TYPE unsigned int | ||
106 | #define __SLONGWORD_TYPE long int | ||
107 | #define __ULONGWORD_TYPE unsigned long int | ||
108 | #if __WORDSIZE == 32 | ||
109 | # define __SQUAD_TYPE __quad_t | ||
110 | # define __UQUAD_TYPE __u_quad_t | ||
111 | # define __SWORD_TYPE int | ||
112 | # define __UWORD_TYPE unsigned int | ||
113 | # define __SLONG32_TYPE long int | ||
114 | # define __ULONG32_TYPE unsigned long int | ||
115 | # define __S64_TYPE __quad_t | ||
116 | # define __U64_TYPE __u_quad_t | ||
117 | /* We want __extension__ before typedef's that use nonstandard base types | ||
118 | such as `long long' in C89 mode. */ | ||
119 | # define __STD_TYPE __extension__ typedef | ||
120 | #elif __WORDSIZE == 64 | ||
121 | # define __SQUAD_TYPE long int | ||
122 | # define __UQUAD_TYPE unsigned long int | ||
123 | # define __SWORD_TYPE long int | ||
124 | # define __UWORD_TYPE unsigned long int | ||
125 | # define __SLONG32_TYPE int | ||
126 | # define __ULONG32_TYPE unsigned int | ||
127 | # define __S64_TYPE long int | ||
128 | # define __U64_TYPE unsigned long int | ||
129 | /* No need to mark the typedef with __extension__. */ | ||
130 | # define __STD_TYPE typedef | ||
131 | #else | ||
132 | # error | ||
133 | #endif | ||
134 | #include <bits/typesizes.h> /* Defines __*_T_TYPE macros. */ | ||
135 | |||
136 | |||
137 | __STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers. */ | ||
138 | __STD_TYPE __UID_T_TYPE __uid_t; /* Type of user identifications. */ | ||
139 | __STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications. */ | ||
140 | __STD_TYPE __INO_T_TYPE __ino_t; /* Type of file serial numbers. */ | ||
141 | __STD_TYPE __INO64_T_TYPE __ino64_t; /* Type of file serial numbers (LFS).*/ | ||
142 | __STD_TYPE __MODE_T_TYPE __mode_t; /* Type of file attribute bitmasks. */ | ||
143 | __STD_TYPE __NLINK_T_TYPE __nlink_t; /* Type of file link counts. */ | ||
144 | __STD_TYPE __OFF_T_TYPE __off_t; /* Type of file sizes and offsets. */ | ||
145 | __STD_TYPE __OFF64_T_TYPE __off64_t; /* Type of file sizes and offsets (LFS). */ | ||
146 | __STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications. */ | ||
147 | __STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs. */ | ||
148 | __STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts. */ | ||
149 | __STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement. */ | ||
150 | __STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS). */ | ||
151 | __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */ | ||
152 | __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */ | ||
153 | __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */ | ||
154 | __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */ | ||
155 | |||
156 | __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */ | ||
157 | __STD_TYPE __SWBLK_T_TYPE __swblk_t; /* Type of a swap block maybe? */ | ||
158 | __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */ | ||
159 | |||
160 | /* Clock ID used in clock and timer functions. */ | ||
161 | __STD_TYPE __CLOCKID_T_TYPE __clockid_t; | ||
162 | |||
163 | /* Timer ID returned by `timer_create'. */ | ||
164 | __STD_TYPE __TIMER_T_TYPE __timer_t; | ||
165 | |||
166 | /* Type to represent block size. */ | ||
167 | __STD_TYPE __BLKSIZE_T_TYPE __blksize_t; | ||
168 | |||
169 | /* Types from the Large File Support interface. */ | ||
170 | |||
171 | /* Type to count number of disk blocks. */ | ||
172 | __STD_TYPE __BLKCNT_T_TYPE __blkcnt_t; | ||
173 | __STD_TYPE __BLKCNT64_T_TYPE __blkcnt64_t; | ||
174 | |||
175 | /* Type to count file system blocks. */ | ||
176 | __STD_TYPE __FSBLKCNT_T_TYPE __fsblkcnt_t; | ||
177 | __STD_TYPE __FSBLKCNT64_T_TYPE __fsblkcnt64_t; | ||
178 | |||
179 | /* Type to count file system nodes. */ | ||
180 | __STD_TYPE __FSFILCNT_T_TYPE __fsfilcnt_t; | ||
181 | __STD_TYPE __FSFILCNT64_T_TYPE __fsfilcnt64_t; | ||
182 | |||
183 | __STD_TYPE __SSIZE_T_TYPE __ssize_t; /* Type of a byte count, or error. */ | ||
184 | |||
185 | /* These few don't really vary by system, they always correspond | ||
186 | to one of the other defined types. */ | ||
187 | typedef __off64_t __loff_t; /* Type of file sizes and offsets (LFS). */ | ||
188 | typedef __quad_t *__qaddr_t; | ||
189 | typedef char *__caddr_t; | ||
190 | |||
191 | /* Duplicates info from stdint.h but this is used in unistd.h. */ | ||
192 | __STD_TYPE __SWORD_TYPE __intptr_t; | ||
193 | |||
194 | /* Duplicate info from sys/socket.h. */ | ||
195 | __STD_TYPE __U32_TYPE __socklen_t; | ||
196 | |||
197 | |||
198 | #undef __STD_TYPE | ||
199 | |||
200 | #endif /* bits/types.h */ | ||
diff --git a/meta/packages/glibc/glibc-2.4/generic-bits_typesizes.h b/meta/packages/glibc/glibc-2.4/generic-bits_typesizes.h deleted file mode 100644 index e9226c4174..0000000000 --- a/meta/packages/glibc/glibc-2.4/generic-bits_typesizes.h +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | /* bits/typesizes.h -- underlying types for *_t. Generic version. | ||
2 | Copyright (C) 2002, 2003 Free Software Foundation, Inc. | ||
3 | This file is part of the GNU C Library. | ||
4 | |||
5 | The GNU C Library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | The GNU C Library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with the GNU C Library; if not, write to the Free | ||
17 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
18 | 02111-1307 USA. */ | ||
19 | |||
20 | #ifndef _BITS_TYPES_H | ||
21 | # error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead." | ||
22 | #endif | ||
23 | |||
24 | #ifndef _BITS_TYPESIZES_H | ||
25 | #define _BITS_TYPESIZES_H 1 | ||
26 | |||
27 | /* See <bits/types.h> for the meaning of these macros. This file exists so | ||
28 | that <bits/types.h> need not vary across different GNU platforms. */ | ||
29 | |||
30 | #define __DEV_T_TYPE __UQUAD_TYPE | ||
31 | #define __UID_T_TYPE __U32_TYPE | ||
32 | #define __GID_T_TYPE __U32_TYPE | ||
33 | #define __INO_T_TYPE __ULONGWORD_TYPE | ||
34 | #define __INO64_T_TYPE __UQUAD_TYPE | ||
35 | #define __MODE_T_TYPE __U32_TYPE | ||
36 | #define __NLINK_T_TYPE __UWORD_TYPE | ||
37 | #define __OFF_T_TYPE __SLONGWORD_TYPE | ||
38 | #define __OFF64_T_TYPE __SQUAD_TYPE | ||
39 | #define __PID_T_TYPE __S32_TYPE | ||
40 | #define __RLIM_T_TYPE __ULONGWORD_TYPE | ||
41 | #define __RLIM64_T_TYPE __UQUAD_TYPE | ||
42 | #define __BLKCNT_T_TYPE __SLONGWORD_TYPE | ||
43 | #define __BLKCNT64_T_TYPE __SQUAD_TYPE | ||
44 | #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE | ||
45 | #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE | ||
46 | #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE | ||
47 | #define __FSFILCNT64_T_TYPE __UQUAD_TYPE | ||
48 | #define __ID_T_TYPE __U32_TYPE | ||
49 | #define __CLOCK_T_TYPE __SLONGWORD_TYPE | ||
50 | #define __TIME_T_TYPE __SLONGWORD_TYPE | ||
51 | #define __USECONDS_T_TYPE __U32_TYPE | ||
52 | #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE | ||
53 | #define __DADDR_T_TYPE __S32_TYPE | ||
54 | #define __SWBLK_T_TYPE __SLONGWORD_TYPE | ||
55 | #define __KEY_T_TYPE __S32_TYPE | ||
56 | #define __CLOCKID_T_TYPE __S32_TYPE | ||
57 | #define __TIMER_T_TYPE void * | ||
58 | #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE | ||
59 | #define __FSID_T_TYPE struct { int __val[2]; } | ||
60 | #define __SSIZE_T_TYPE __SWORD_TYPE | ||
61 | |||
62 | /* Number of descriptors that can fit in an `fd_set'. */ | ||
63 | #define __FD_SETSIZE 1024 | ||
64 | |||
65 | |||
66 | #endif /* bits/typesizes.h */ | ||
diff --git a/meta/packages/glibc/glibc-2.4/glibc-2.4-compile.patch b/meta/packages/glibc/glibc-2.4/glibc-2.4-compile.patch deleted file mode 100644 index ea9f55ae7f..0000000000 --- a/meta/packages/glibc/glibc-2.4/glibc-2.4-compile.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | --- glibc-2.4/csu/libc-start.c.ark 2006-03-13 03:07:15.000000000 +0100 | ||
2 | +++ glibc-2.4/csu/libc-start.c 2006-03-13 03:08:51.000000000 +0100 | ||
3 | @@ -59,6 +59,11 @@ | ||
4 | # define LIBC_START_MAIN BP_SYM (__libc_start_main) | ||
5 | #endif | ||
6 | |||
7 | +#ifdef SHARED | ||
8 | +#include <pthread-functions.h> | ||
9 | +extern struct pthread_functions __libc_pthread_functions; | ||
10 | +#endif | ||
11 | + | ||
12 | #ifdef MAIN_AUXVEC_ARG | ||
13 | /* main gets passed a pointer to the auxiliary. */ | ||
14 | # define MAIN_AUXVEC_DECL , void * | ||
15 | --- glibc-2.4/nscd/Makefile.ark 2006-03-13 14:05:47.000000000 +0100 | ||
16 | +++ glibc-2.4/nscd/Makefile 2006-03-13 14:06:12.000000000 +0100 | ||
17 | @@ -67,8 +67,10 @@ | ||
18 | # contains only the basic kernel interface headers, not something like | ||
19 | # libselinux. So the simplest thing is to presume that the standard | ||
20 | # system headers will be ok for this file. | ||
21 | -$(objpfx)nscd_stat.o: sysincludes = # nothing | ||
22 | -$(objpfx)selinux.o: sysincludes = # nothing | ||
23 | +# Except, of course, this breaks crosscompiling with kernel headers in | ||
24 | +# a nonstandard location... | ||
25 | +#$(objpfx)nscd_stat.o: sysincludes = # nothing | ||
26 | +#$(objpfx)selinux.o: sysincludes = # nothing | ||
27 | |||
28 | distribute := nscd.h nscd-client.h dbg_log.h \ | ||
29 | $(addsuffix .c, $(filter-out xmalloc,$(all-nscd-modules))) \ | ||
diff --git a/meta/packages/glibc/glibc-2.4/glibc-2.4-openat-3.patch b/meta/packages/glibc/glibc-2.4/glibc-2.4-openat-3.patch deleted file mode 100644 index d3f37f6c36..0000000000 --- a/meta/packages/glibc/glibc-2.4/glibc-2.4-openat-3.patch +++ /dev/null | |||
@@ -1,133 +0,0 @@ | |||
1 | Submitted By: Jim Gifford (patches at jg555 dot com) | ||
2 | Date: 2006-08-18 | ||
3 | Initial Package Version: 2.4 | ||
4 | Origin: http://sourceware.org/bugzilla/show_bug.cgi?id=2873 | ||
5 | Upstream Status: Applied | ||
6 | Description: Fixes http://sourceware.org/bugzilla/show_bug.cgi?id=2873 | ||
7 | http://sourceware.org/bugzilla/show_bug.cgi?id=3040 | ||
8 | http://linuxfromscratch.org/pipermail/lfs-dev/2006-June/057562.html | ||
9 | Updated by Joe Ciccone | ||
10 | |||
11 | diff -Naur glibc-2.4.orig/sysdeps/unix/sysv/linux/i386/fchownat.c glibc-2.4/sysdeps/unix/sysv/linux/i386/fchownat.c | ||
12 | --- glibc-2.4.orig/sysdeps/unix/sysv/linux/i386/fchownat.c 2006-02-23 14:50:21.000000000 -0800 | ||
13 | +++ glibc-2.4/sysdeps/unix/sysv/linux/i386/fchownat.c 2006-08-18 20:38:21.773288795 -0700 | ||
14 | @@ -61,6 +61,24 @@ | ||
15 | int | ||
16 | fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag) | ||
17 | { | ||
18 | + int result; | ||
19 | + | ||
20 | +#ifdef __NR_fchownat | ||
21 | +# ifndef __ASSUME_ATFCTS | ||
22 | + if (__have_atfcts >= 0) | ||
23 | +# endif | ||
24 | + { | ||
25 | + result = INLINE_SYSCALL (fchownat, 5, fd, file, owner, group, flag); | ||
26 | +# ifndef __ASSUME_ATFCTS | ||
27 | + if (result == -1 && errno == ENOSYS) | ||
28 | + __have_atfcts = -1; | ||
29 | + else | ||
30 | +# endif | ||
31 | + return result; | ||
32 | + } | ||
33 | +#endif | ||
34 | + | ||
35 | +#ifndef __ASSUME_ATFCTS | ||
36 | if (flag & ~AT_SYMLINK_NOFOLLOW) | ||
37 | { | ||
38 | __set_errno (EINVAL); | ||
39 | @@ -87,14 +105,13 @@ | ||
40 | file = buf; | ||
41 | } | ||
42 | |||
43 | - int result; | ||
44 | INTERNAL_SYSCALL_DECL (err); | ||
45 | |||
46 | -#if defined __NR_lchown || __ASSUME_LCHOWN_SYSCALL > 0 | ||
47 | -# if __ASSUME_LCHOWN_SYSCALL == 0 | ||
48 | +# if defined __NR_lchown || __ASSUME_LCHOWN_SYSCALL > 0 | ||
49 | +# if __ASSUME_LCHOWN_SYSCALL == 0 | ||
50 | static int __libc_old_chown; | ||
51 | |||
52 | -# ifdef __NR_chown32 | ||
53 | +# ifdef __NR_chown32 | ||
54 | if (__libc_missing_32bit_uids <= 0) | ||
55 | { | ||
56 | if (flag & AT_SYMLINK_NOFOLLOW) | ||
57 | @@ -111,7 +128,7 @@ | ||
58 | |||
59 | __libc_missing_32bit_uids = 1; | ||
60 | } | ||
61 | -# endif /* __NR_chown32 */ | ||
62 | +# endif /* __NR_chown32 */ | ||
63 | |||
64 | if (((owner + 1) > (uid_t) ((__kernel_uid_t) -1U)) | ||
65 | || ((group + 1) > (gid_t) ((__kernel_gid_t) -1U))) | ||
66 | @@ -135,13 +152,13 @@ | ||
67 | |||
68 | result = INTERNAL_SYSCALL (lchown, err, 3, CHECK_STRING (file), owner, | ||
69 | group); | ||
70 | -# elif __ASSUME_32BITUIDS | ||
71 | +# elif __ASSUME_32BITUIDS | ||
72 | /* This implies __ASSUME_LCHOWN_SYSCALL. */ | ||
73 | result = INTERNAL_SYSCALL (chown32, err, 3, CHECK_STRING (file), owner, | ||
74 | group); | ||
75 | -# else | ||
76 | +# else | ||
77 | /* !__ASSUME_32BITUIDS && ASSUME_LCHOWN_SYSCALL */ | ||
78 | -# ifdef __NR_chown32 | ||
79 | +# ifdef __NR_chown32 | ||
80 | if (__libc_missing_32bit_uids <= 0) | ||
81 | { | ||
82 | result = INTERNAL_SYSCALL (chown32, err, 3, CHECK_STRING (file), owner, | ||
83 | @@ -153,7 +170,7 @@ | ||
84 | |||
85 | __libc_missing_32bit_uids = 1; | ||
86 | } | ||
87 | -# endif /* __NR_chown32 */ | ||
88 | +# endif /* __NR_chown32 */ | ||
89 | if (((owner + 1) > (uid_t) ((__kernel_uid_t) -1U)) | ||
90 | || ((group + 1) > (gid_t) ((__kernel_gid_t) -1U))) | ||
91 | { | ||
92 | @@ -162,10 +179,10 @@ | ||
93 | } | ||
94 | |||
95 | result = INTERNAL_SYSCALL (chown, err, 3, CHECK_STRING (file), owner, group); | ||
96 | -# endif | ||
97 | -#else | ||
98 | +# endif | ||
99 | +# else | ||
100 | result = INTERNAL_SYSCALL (chown, err, 3, CHECK_STRING (file), owner, group); | ||
101 | -#endif | ||
102 | +# endif | ||
103 | |||
104 | if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (result, err), 0)) | ||
105 | goto fail; | ||
106 | @@ -175,4 +192,5 @@ | ||
107 | fail: | ||
108 | __atfct_seterrno (INTERNAL_SYSCALL_ERRNO (result, err), fd, buf); | ||
109 | return -1; | ||
110 | +#endif | ||
111 | } | ||
112 | diff -Naur glibc-2.4.orig/sysdeps/unix/sysv/linux/openat.c glibc-2.4/sysdeps/unix/sysv/linux/openat.c | ||
113 | --- glibc-2.4.orig/sysdeps/unix/sysv/linux/openat.c 2006-02-28 21:32:42.000000000 -0800 | ||
114 | +++ glibc-2.4/sysdeps/unix/sysv/linux/openat.c 2006-08-18 20:39:14.360012706 -0700 | ||
115 | @@ -29,8 +29,6 @@ | ||
116 | |||
117 | |||
118 | #if !defined OPENAT && !defined __ASSUME_ATFCTS | ||
119 | -# define OPENAT openat | ||
120 | - | ||
121 | /* Set errno after a failed call. If BUF is not null, | ||
122 | it is a /proc/self/fd/ path name we just tried to use. */ | ||
123 | void | ||
124 | @@ -63,6 +61,9 @@ | ||
125 | int __have_atfcts; | ||
126 | #endif | ||
127 | |||
128 | +#ifndef OPENAT | ||
129 | +# define OPENAT openat | ||
130 | +#endif | ||
131 | |||
132 | #define OPENAT_NOT_CANCEL CONCAT (OPENAT) | ||
133 | #define CONCAT(name) CONCAT2 (name) | ||
diff --git a/meta/packages/glibc/glibc-2.4/glibc-arm-no-procinfo_h.patch b/meta/packages/glibc/glibc-2.4/glibc-arm-no-procinfo_h.patch deleted file mode 100644 index 6486fc0eab..0000000000 --- a/meta/packages/glibc/glibc-2.4/glibc-arm-no-procinfo_h.patch +++ /dev/null | |||
@@ -1,325 +0,0 @@ | |||
1 | http://sources.redhat.com/ml/libc-ports/2006-10/msg00040.html | ||
2 | Avoid using asm/procinfo.h | ||
3 | |||
4 | * From: "Joseph S. Myers" <joseph at codesourcery dot com> | ||
5 | * To: libc-ports at sourceware dot org | ||
6 | * Date: Tue, 24 Oct 2006 19:25:12 +0000 (UTC) | ||
7 | * Subject: Avoid using asm/procinfo.h | ||
8 | |||
9 | I previously noted | ||
10 | <http://sourceware.org/ml/libc-ports/2006-08/msg00023.html> that the | ||
11 | use of <asm/procinfo.h>, a Linux-specific kernel header, in | ||
12 | sysdeps/arm/eabi, is an abstraction violation, and that in principle | ||
13 | all the files in sysdeps/arm/eabi should use sysdep.h not | ||
14 | asm/procinfo.h for HWCAP_VFP. | ||
15 | |||
16 | The ARM kernel maintainers have now declared that <asm/procinfo.h> | ||
17 | should not be used outside the kernel at all (and in particular that | ||
18 | headers_install is correct in not exporting it), and that these | ||
19 | definitions will move to a different kernel header. This gives a | ||
20 | concrete reason for making the change to use glibc's internal | ||
21 | definitions, which this patch does, thereby allowing glibc to build | ||
22 | with the exported headers. | ||
23 | |||
24 | 2006-10-24 Joseph S. Myers <joseph@codesourcery.com> | ||
25 | |||
26 | * sysdeps/arm/eabi/fclrexcpt.c: Include <sysdep.h> instead of | ||
27 | <asm/procinfo.h>. Use HWCAP_ARM_VFP instead of HWCAP_VFP. | ||
28 | * sysdeps/arm/eabi/fedisblxcpt.c: Likewise. | ||
29 | * sysdeps/arm/eabi/feenablxcpt.c: Likewise. | ||
30 | * sysdeps/arm/eabi/fegetenv.c: Likewise. | ||
31 | * sysdeps/arm/eabi/fegetexcept.c: Likewise. | ||
32 | * sysdeps/arm/eabi/fegetround.c: Likewise. | ||
33 | * sysdeps/arm/eabi/feholdexcpt.c: Likewise. | ||
34 | * sysdeps/arm/eabi/fesetenv.c: Likewise. | ||
35 | * sysdeps/arm/eabi/fesetround.c: Likewise. | ||
36 | * sysdeps/arm/eabi/fraiseexcpt.c: Likewise. | ||
37 | * sysdeps/arm/eabi/fsetexcptflg.c: Likewise. | ||
38 | * sysdeps/arm/eabi/ftestexcept.c: Likewise. | ||
39 | * sysdeps/arm/eabi/setfpucw.c: Likewise. | ||
40 | |||
41 | Index: libc/ports/sysdeps/arm/eabi/fclrexcpt.c | ||
42 | =================================================================== | ||
43 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fclrexcpt.c,v | ||
44 | retrieving revision 1.1 | ||
45 | diff -u -r1.1 fclrexcpt.c | ||
46 | --- libc/ports/sysdeps/arm/eabi/fclrexcpt.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
47 | +++ libc/ports/sysdeps/arm/eabi/fclrexcpt.c 24 Oct 2006 19:17:51 -0000 | ||
48 | @@ -23,12 +23,12 @@ | ||
49 | #include <unistd.h> | ||
50 | #include <ldsodefs.h> | ||
51 | #include <dl-procinfo.h> | ||
52 | -#include <asm/procinfo.h> | ||
53 | +#include <sysdep.h> | ||
54 | |||
55 | int | ||
56 | __feclearexcept (int excepts) | ||
57 | { | ||
58 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
59 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
60 | { | ||
61 | unsigned long int temp; | ||
62 | |||
63 | Index: libc/ports/sysdeps/arm/eabi/fedisblxcpt.c | ||
64 | =================================================================== | ||
65 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fedisblxcpt.c,v | ||
66 | retrieving revision 1.1 | ||
67 | diff -u -r1.1 fedisblxcpt.c | ||
68 | --- libc/ports/sysdeps/arm/eabi/fedisblxcpt.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
69 | +++ libc/ports/sysdeps/arm/eabi/fedisblxcpt.c 24 Oct 2006 19:17:51 -0000 | ||
70 | @@ -24,12 +24,12 @@ | ||
71 | #include <unistd.h> | ||
72 | #include <ldsodefs.h> | ||
73 | #include <dl-procinfo.h> | ||
74 | -#include <asm/procinfo.h> | ||
75 | +#include <sysdep.h> | ||
76 | |||
77 | int | ||
78 | fedisableexcept (int excepts) | ||
79 | { | ||
80 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
81 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
82 | { | ||
83 | unsigned long int new_exc, old_exc; | ||
84 | |||
85 | Index: libc/ports/sysdeps/arm/eabi/feenablxcpt.c | ||
86 | =================================================================== | ||
87 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/feenablxcpt.c,v | ||
88 | retrieving revision 1.1 | ||
89 | diff -u -r1.1 feenablxcpt.c | ||
90 | --- libc/ports/sysdeps/arm/eabi/feenablxcpt.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
91 | +++ libc/ports/sysdeps/arm/eabi/feenablxcpt.c 24 Oct 2006 19:17:51 -0000 | ||
92 | @@ -24,12 +24,12 @@ | ||
93 | #include <unistd.h> | ||
94 | #include <ldsodefs.h> | ||
95 | #include <dl-procinfo.h> | ||
96 | -#include <asm/procinfo.h> | ||
97 | +#include <sysdep.h> | ||
98 | |||
99 | int | ||
100 | feenableexcept (int excepts) | ||
101 | { | ||
102 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
103 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
104 | { | ||
105 | unsigned long int new_exc, old_exc; | ||
106 | |||
107 | Index: libc/ports/sysdeps/arm/eabi/fegetenv.c | ||
108 | =================================================================== | ||
109 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fegetenv.c,v | ||
110 | retrieving revision 1.1 | ||
111 | diff -u -r1.1 fegetenv.c | ||
112 | --- libc/ports/sysdeps/arm/eabi/fegetenv.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
113 | +++ libc/ports/sysdeps/arm/eabi/fegetenv.c 24 Oct 2006 19:17:51 -0000 | ||
114 | @@ -23,12 +23,12 @@ | ||
115 | #include <unistd.h> | ||
116 | #include <ldsodefs.h> | ||
117 | #include <dl-procinfo.h> | ||
118 | -#include <asm/procinfo.h> | ||
119 | +#include <sysdep.h> | ||
120 | |||
121 | int | ||
122 | __fegetenv (fenv_t *envp) | ||
123 | { | ||
124 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
125 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
126 | { | ||
127 | unsigned long int temp; | ||
128 | _FPU_GETCW (temp); | ||
129 | Index: libc/ports/sysdeps/arm/eabi/fegetexcept.c | ||
130 | =================================================================== | ||
131 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fegetexcept.c,v | ||
132 | retrieving revision 1.1 | ||
133 | diff -u -r1.1 fegetexcept.c | ||
134 | --- libc/ports/sysdeps/arm/eabi/fegetexcept.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
135 | +++ libc/ports/sysdeps/arm/eabi/fegetexcept.c 24 Oct 2006 19:17:51 -0000 | ||
136 | @@ -24,12 +24,12 @@ | ||
137 | #include <unistd.h> | ||
138 | #include <ldsodefs.h> | ||
139 | #include <dl-procinfo.h> | ||
140 | -#include <asm/procinfo.h> | ||
141 | +#include <sysdep.h> | ||
142 | |||
143 | int | ||
144 | fegetexcept (void) | ||
145 | { | ||
146 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
147 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
148 | { | ||
149 | unsigned long temp; | ||
150 | |||
151 | Index: libc/ports/sysdeps/arm/eabi/fegetround.c | ||
152 | =================================================================== | ||
153 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fegetround.c,v | ||
154 | retrieving revision 1.1 | ||
155 | diff -u -r1.1 fegetround.c | ||
156 | --- libc/ports/sysdeps/arm/eabi/fegetround.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
157 | +++ libc/ports/sysdeps/arm/eabi/fegetround.c 24 Oct 2006 19:17:51 -0000 | ||
158 | @@ -23,12 +23,12 @@ | ||
159 | #include <unistd.h> | ||
160 | #include <ldsodefs.h> | ||
161 | #include <dl-procinfo.h> | ||
162 | -#include <asm/procinfo.h> | ||
163 | +#include <sysdep.h> | ||
164 | |||
165 | int | ||
166 | fegetround (void) | ||
167 | { | ||
168 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
169 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
170 | { | ||
171 | unsigned int temp; | ||
172 | |||
173 | Index: libc/ports/sysdeps/arm/eabi/feholdexcpt.c | ||
174 | =================================================================== | ||
175 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/feholdexcpt.c,v | ||
176 | retrieving revision 1.1 | ||
177 | diff -u -r1.1 feholdexcpt.c | ||
178 | --- libc/ports/sysdeps/arm/eabi/feholdexcpt.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
179 | +++ libc/ports/sysdeps/arm/eabi/feholdexcpt.c 24 Oct 2006 19:17:51 -0000 | ||
180 | @@ -23,12 +23,12 @@ | ||
181 | #include <unistd.h> | ||
182 | #include <ldsodefs.h> | ||
183 | #include <dl-procinfo.h> | ||
184 | -#include <asm/procinfo.h> | ||
185 | +#include <sysdep.h> | ||
186 | |||
187 | int | ||
188 | feholdexcept (fenv_t *envp) | ||
189 | { | ||
190 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
191 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
192 | { | ||
193 | unsigned long int temp; | ||
194 | |||
195 | Index: libc/ports/sysdeps/arm/eabi/fesetenv.c | ||
196 | =================================================================== | ||
197 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fesetenv.c,v | ||
198 | retrieving revision 1.1 | ||
199 | diff -u -r1.1 fesetenv.c | ||
200 | --- libc/ports/sysdeps/arm/eabi/fesetenv.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
201 | +++ libc/ports/sysdeps/arm/eabi/fesetenv.c 24 Oct 2006 19:17:51 -0000 | ||
202 | @@ -23,12 +23,12 @@ | ||
203 | #include <unistd.h> | ||
204 | #include <ldsodefs.h> | ||
205 | #include <dl-procinfo.h> | ||
206 | -#include <asm/procinfo.h> | ||
207 | +#include <sysdep.h> | ||
208 | |||
209 | int | ||
210 | __fesetenv (const fenv_t *envp) | ||
211 | { | ||
212 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
213 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
214 | { | ||
215 | unsigned int temp; | ||
216 | |||
217 | Index: libc/ports/sysdeps/arm/eabi/fesetround.c | ||
218 | =================================================================== | ||
219 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fesetround.c,v | ||
220 | retrieving revision 1.1 | ||
221 | diff -u -r1.1 fesetround.c | ||
222 | --- libc/ports/sysdeps/arm/eabi/fesetround.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
223 | +++ libc/ports/sysdeps/arm/eabi/fesetround.c 24 Oct 2006 19:17:51 -0000 | ||
224 | @@ -23,12 +23,12 @@ | ||
225 | #include <unistd.h> | ||
226 | #include <ldsodefs.h> | ||
227 | #include <dl-procinfo.h> | ||
228 | -#include <asm/procinfo.h> | ||
229 | +#include <sysdep.h> | ||
230 | |||
231 | int | ||
232 | fesetround (int round) | ||
233 | { | ||
234 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
235 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
236 | { | ||
237 | fpu_control_t temp; | ||
238 | |||
239 | Index: libc/ports/sysdeps/arm/eabi/fraiseexcpt.c | ||
240 | =================================================================== | ||
241 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fraiseexcpt.c,v | ||
242 | retrieving revision 1.1 | ||
243 | diff -u -r1.1 fraiseexcpt.c | ||
244 | --- libc/ports/sysdeps/arm/eabi/fraiseexcpt.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
245 | +++ libc/ports/sysdeps/arm/eabi/fraiseexcpt.c 24 Oct 2006 19:17:51 -0000 | ||
246 | @@ -24,12 +24,12 @@ | ||
247 | #include <unistd.h> | ||
248 | #include <ldsodefs.h> | ||
249 | #include <dl-procinfo.h> | ||
250 | -#include <asm/procinfo.h> | ||
251 | +#include <sysdep.h> | ||
252 | |||
253 | int | ||
254 | feraiseexcept (int excepts) | ||
255 | { | ||
256 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
257 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
258 | { | ||
259 | int fpscr; | ||
260 | const float fp_zero = 0.0, fp_one = 1.0, fp_max = FLT_MAX, | ||
261 | Index: libc/ports/sysdeps/arm/eabi/fsetexcptflg.c | ||
262 | =================================================================== | ||
263 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/fsetexcptflg.c,v | ||
264 | retrieving revision 1.1 | ||
265 | diff -u -r1.1 fsetexcptflg.c | ||
266 | --- libc/ports/sysdeps/arm/eabi/fsetexcptflg.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
267 | +++ libc/ports/sysdeps/arm/eabi/fsetexcptflg.c 24 Oct 2006 19:17:51 -0000 | ||
268 | @@ -24,12 +24,12 @@ | ||
269 | #include <unistd.h> | ||
270 | #include <ldsodefs.h> | ||
271 | #include <dl-procinfo.h> | ||
272 | -#include <asm/procinfo.h> | ||
273 | +#include <sysdep.h> | ||
274 | |||
275 | int | ||
276 | __fesetexceptflag (const fexcept_t *flagp, int excepts) | ||
277 | { | ||
278 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
279 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
280 | { | ||
281 | fexcept_t temp; | ||
282 | |||
283 | Index: libc/ports/sysdeps/arm/eabi/ftestexcept.c | ||
284 | =================================================================== | ||
285 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/ftestexcept.c,v | ||
286 | retrieving revision 1.1 | ||
287 | diff -u -r1.1 ftestexcept.c | ||
288 | --- libc/ports/sysdeps/arm/eabi/ftestexcept.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
289 | +++ libc/ports/sysdeps/arm/eabi/ftestexcept.c 24 Oct 2006 19:17:51 -0000 | ||
290 | @@ -23,12 +23,12 @@ | ||
291 | #include <unistd.h> | ||
292 | #include <ldsodefs.h> | ||
293 | #include <dl-procinfo.h> | ||
294 | -#include <asm/procinfo.h> | ||
295 | +#include <sysdep.h> | ||
296 | |||
297 | int | ||
298 | fetestexcept (int excepts) | ||
299 | { | ||
300 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
301 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
302 | { | ||
303 | fexcept_t temp; | ||
304 | |||
305 | Index: libc/ports/sysdeps/arm/eabi/setfpucw.c | ||
306 | =================================================================== | ||
307 | RCS file: /cvs/glibc/ports/sysdeps/arm/eabi/setfpucw.c,v | ||
308 | retrieving revision 1.1 | ||
309 | diff -u -r1.1 setfpucw.c | ||
310 | --- libc/ports/sysdeps/arm/eabi/setfpucw.c 10 Oct 2005 15:29:32 -0000 1.1 | ||
311 | +++ libc/ports/sysdeps/arm/eabi/setfpucw.c 24 Oct 2006 19:17:51 -0000 | ||
312 | @@ -23,12 +23,12 @@ | ||
313 | #include <unistd.h> | ||
314 | #include <ldsodefs.h> | ||
315 | #include <dl-procinfo.h> | ||
316 | -#include <asm/procinfo.h> | ||
317 | +#include <sysdep.h> | ||
318 | |||
319 | void | ||
320 | __setfpucw (fpu_control_t set) | ||
321 | { | ||
322 | - if (GLRO (dl_hwcap) & HWCAP_VFP) | ||
323 | + if (GLRO (dl_hwcap) & HWCAP_ARM_VFP) | ||
324 | { | ||
325 | fpu_control_t cw; | ||
diff --git a/meta/packages/glibc/glibc-2.4/glibc-check_pf.patch b/meta/packages/glibc/glibc-2.4/glibc-check_pf.patch deleted file mode 100644 index 3cff6bbcfa..0000000000 --- a/meta/packages/glibc/glibc-2.4/glibc-check_pf.patch +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | From libc-ports-return-550-listarch-libc-ports=sources dot redhat dot com at sourceware dot org Tue Oct 31 17:37:21 2006 | ||
2 | Return-Path: <libc-ports-return-550-listarch-libc-ports=sources dot redhat dot com at sourceware dot org> | ||
3 | Delivered-To: listarch-libc-ports at sources dot redhat dot com | ||
4 | Received: (qmail 17273 invoked by alias); 31 Oct 2006 17:37:20 -0000 | ||
5 | Received: (qmail 17262 invoked by uid 22791); 31 Oct 2006 17:37:19 -0000 | ||
6 | X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,TW_CP | ||
7 | X-Spam-Check-By: sourceware.org | ||
8 | Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 31 Oct 2006 17:37:11 +0000 | ||
9 | Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GexXw-0007Dj-30; Tue, 31 Oct 2006 12:37:08 -0500 | ||
10 | Date: Tue, 31 Oct 2006 12:37:08 -0500 | ||
11 | From: Daniel Jacobowitz <drow at false dot org> | ||
12 | To: Mike Frysinger <vapier at gentoo dot org> | ||
13 | Cc: libc-ports at sourceware dot org, Philip Balister <philip dot balister at gmail dot com> | ||
14 | Subject: Re: Problem with glibc-2.5 on ARM | ||
15 | Message-ID: <20061031173708.GJ20468@nevyn.them.org> | ||
16 | References: <499146270610241149ibe030e0nd9d6b177a95b346e@mail.gmail.com> <499146270610241254u7cadf63ej2edf05cedbc5266f@mail.gmail.com> <20061024195837.GA20181@nevyn.them.org> <200610291954.27022.vapier@gentoo.org> | ||
17 | MIME-Version: 1.0 | ||
18 | Content-Type: text/plain; charset=us-ascii | ||
19 | Content-Disposition: inline | ||
20 | In-Reply-To: <200610291954 dot 27022 dot vapier at gentoo dot org> | ||
21 | User-Agent: Mutt/1.5.13 (2006-08-11) | ||
22 | X-IsSubscribed: yes | ||
23 | Mailing-List: contact libc-ports-help at sourceware dot org; run by ezmlm | ||
24 | Precedence: bulk | ||
25 | List-Subscribe: <mailto:libc-ports-subscribe at sourceware dot org> | ||
26 | List-Post: <mailto:libc-ports at sourceware dot org> | ||
27 | List-Help: <mailto:libc-ports-help at sourceware dot org>, <http://sourceware dot org/lists dot html#faqs> | ||
28 | Sender: libc-ports-owner at sourceware dot org | ||
29 | Delivered-To: mailing list libc-ports at sourceware dot org | ||
30 | |||
31 | On Sun, Oct 29, 2006 at 07:54:25PM -0500, Mike Frysinger wrote: | ||
32 | > On Tuesday 24 October 2006 15:58, Daniel Jacobowitz wrote: | ||
33 | > > ARM is going to need a slightly different version of that file, I | ||
34 | > > guess. | ||
35 | > | ||
36 | > would declaring req with attribute packed not help ? | ||
37 | > -mike | ||
38 | |||
39 | Nope. "struct rtgenmsg" would still have size 4. | ||
40 | |||
41 | Philip, are you still at all interested in this for the old ABI? | ||
42 | I don't have time to test this patch right now, but I think it | ||
43 | will work. | ||
44 | |||
45 | -- | ||
46 | Daniel Jacobowitz | ||
47 | CodeSourcery | ||
48 | |||
49 | 2006-10-31 Daniel Jacobowitz <dan@codesourcery.com> | ||
50 | |||
51 | * sysdeps/unix/sysv/linux/arm/check_pf.c: New file. | ||
52 | * sysdeps/unix/sysv/linux/arm/eabi/check_pf.c: New file. | ||
53 | |||
54 | Index: sysdeps/unix/sysv/linux/arm/check_pf.c | ||
55 | =================================================================== | ||
56 | RCS file: sysdeps/unix/sysv/linux/arm/check_pf.c | ||
57 | diff -N sysdeps/unix/sysv/linux/arm/check_pf.c | ||
58 | --- /dev/null 1 Jan 1970 00:00:00 -0000 | ||
59 | +++ sysdeps/unix/sysv/linux/arm/check_pf.c 31 Oct 2006 17:29:58 -0000 | ||
60 | @@ -0,0 +1,274 @@ | ||
61 | +/* Determine protocol families for which interfaces exist. ARM Linux version. | ||
62 | + Copyright (C) 2003, 2006 Free Software Foundation, Inc. | ||
63 | + This file is part of the GNU C Library. | ||
64 | + | ||
65 | + The GNU C Library is free software; you can redistribute it and/or | ||
66 | + modify it under the terms of the GNU Lesser General Public | ||
67 | + License as published by the Free Software Foundation; either | ||
68 | + version 2.1 of the License, or (at your option) any later version. | ||
69 | + | ||
70 | + The GNU C Library is distributed in the hope that it will be useful, | ||
71 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
72 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
73 | + Lesser General Public License for more details. | ||
74 | + | ||
75 | + You should have received a copy of the GNU Lesser General Public | ||
76 | + License along with the GNU C Library; if not, write to the Free | ||
77 | + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
78 | + 02111-1307 USA. */ | ||
79 | + | ||
80 | +#include <assert.h> | ||
81 | +#include <errno.h> | ||
82 | +#include <ifaddrs.h> | ||
83 | +#include <netdb.h> | ||
84 | +#include <stddef.h> | ||
85 | +#include <string.h> | ||
86 | +#include <time.h> | ||
87 | +#include <unistd.h> | ||
88 | +#include <sys/socket.h> | ||
89 | + | ||
90 | +#include <asm/types.h> | ||
91 | +#include <linux/netlink.h> | ||
92 | +#include <linux/rtnetlink.h> | ||
93 | + | ||
94 | +#include <not-cancel.h> | ||
95 | +#include <kernel-features.h> | ||
96 | + | ||
97 | + | ||
98 | +#ifndef IFA_F_TEMPORARY | ||
99 | +# define IFA_F_TEMPORARY IFA_F_SECONDARY | ||
100 | +#endif | ||
101 | +#ifndef IFA_F_HOMEADDRESS | ||
102 | +# define IFA_F_HOMEADDRESS 0 | ||
103 | +#endif | ||
104 | + | ||
105 | + | ||
106 | +static int | ||
107 | +make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6, | ||
108 | + struct in6addrinfo **in6ai, size_t *in6ailen) | ||
109 | +{ | ||
110 | + struct req | ||
111 | + { | ||
112 | + struct nlmsghdr nlh; | ||
113 | + struct rtgenmsg g; | ||
114 | + } req; | ||
115 | + struct sockaddr_nl nladdr; | ||
116 | + | ||
117 | + /* struct rtgenmsg consists of a single byte but the ARM ABI rounds | ||
118 | + it up to a word. Clear the padding explicitly here. */ | ||
119 | + assert (sizeof (req.g) == 4); | ||
120 | + memset (&req.g, '\0', sizeof (req.g)); | ||
121 | + | ||
122 | + req.nlh.nlmsg_len = sizeof (req); | ||
123 | + req.nlh.nlmsg_type = RTM_GETADDR; | ||
124 | + req.nlh.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST; | ||
125 | + req.nlh.nlmsg_pid = 0; | ||
126 | + req.nlh.nlmsg_seq = time (NULL); | ||
127 | + req.g.rtgen_family = AF_UNSPEC; | ||
128 | + | ||
129 | + memset (&nladdr, '\0', sizeof (nladdr)); | ||
130 | + nladdr.nl_family = AF_NETLINK; | ||
131 | + | ||
132 | + if (TEMP_FAILURE_RETRY (__sendto (fd, (void *) &req, sizeof (req), 0, | ||
133 | + (struct sockaddr *) &nladdr, | ||
134 | + sizeof (nladdr))) < 0) | ||
135 | + return -1; | ||
136 | + | ||
137 | + *seen_ipv4 = false; | ||
138 | + *seen_ipv6 = false; | ||
139 | + | ||
140 | + bool done = false; | ||
141 | + char buf[4096]; | ||
142 | + struct iovec iov = { buf, sizeof (buf) }; | ||
143 | + struct in6ailist | ||
144 | + { | ||
145 | + struct in6addrinfo info; | ||
146 | + struct in6ailist *next; | ||
147 | + } *in6ailist = NULL; | ||
148 | + size_t in6ailistlen = 0; | ||
149 | + | ||
150 | + do | ||
151 | + { | ||
152 | + struct msghdr msg = | ||
153 | + { | ||
154 | + (void *) &nladdr, sizeof (nladdr), | ||
155 | + &iov, 1, | ||
156 | + NULL, 0, | ||
157 | + 0 | ||
158 | + }; | ||
159 | + | ||
160 | + ssize_t read_len = TEMP_FAILURE_RETRY (__recvmsg (fd, &msg, 0)); | ||
161 | + if (read_len < 0) | ||
162 | + return -1; | ||
163 | + | ||
164 | + if (msg.msg_flags & MSG_TRUNC) | ||
165 | + return -1; | ||
166 | + | ||
167 | + struct nlmsghdr *nlmh; | ||
168 | + for (nlmh = (struct nlmsghdr *) buf; | ||
169 | + NLMSG_OK (nlmh, (size_t) read_len); | ||
170 | + nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len)) | ||
171 | + { | ||
172 | + if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != pid | ||
173 | + || nlmh->nlmsg_seq != req.nlh.nlmsg_seq) | ||
174 | + continue; | ||
175 | + | ||
176 | + if (nlmh->nlmsg_type == RTM_NEWADDR) | ||
177 | + { | ||
178 | + struct ifaddrmsg *ifam = (struct ifaddrmsg *) NLMSG_DATA (nlmh); | ||
179 | + | ||
180 | + switch (ifam->ifa_family) | ||
181 | + { | ||
182 | + case AF_INET: | ||
183 | + *seen_ipv4 = true; | ||
184 | + break; | ||
185 | + case AF_INET6: | ||
186 | + *seen_ipv6 = true; | ||
187 | + | ||
188 | + if (ifam->ifa_flags & (IFA_F_DEPRECATED | ||
189 | + | IFA_F_TEMPORARY | ||
190 | + | IFA_F_HOMEADDRESS)) | ||
191 | + { | ||
192 | + struct rtattr *rta = IFA_RTA (ifam); | ||
193 | + size_t len = (nlmh->nlmsg_len | ||
194 | + - NLMSG_LENGTH (sizeof (*ifam))); | ||
195 | + void *local = NULL; | ||
196 | + void *address = NULL; | ||
197 | + while (RTA_OK (rta, len)) | ||
198 | + { | ||
199 | + switch (rta->rta_type) | ||
200 | + { | ||
201 | + case IFA_LOCAL: | ||
202 | + local = RTA_DATA (rta); | ||
203 | + break; | ||
204 | + | ||
205 | + case IFA_ADDRESS: | ||
206 | + address = RTA_DATA (rta); | ||
207 | + break; | ||
208 | + } | ||
209 | + | ||
210 | + rta = RTA_NEXT (rta, len); | ||
211 | + } | ||
212 | + | ||
213 | + struct in6ailist *newp = alloca (sizeof (*newp)); | ||
214 | + newp->info.flags = (((ifam->ifa_flags & IFA_F_DEPRECATED) | ||
215 | + ? in6ai_deprecated : 0) | ||
216 | + | ((ifam->ifa_flags | ||
217 | + & IFA_F_TEMPORARY) | ||
218 | + ? in6ai_temporary : 0) | ||
219 | + | ((ifam->ifa_flags | ||
220 | + & IFA_F_HOMEADDRESS) | ||
221 | + ? in6ai_homeaddress : 0)); | ||
222 | + memcpy (newp->info.addr, address ?: local, | ||
223 | + sizeof (newp->info.addr)); | ||
224 | + newp->next = in6ailist; | ||
225 | + in6ailist = newp; | ||
226 | + ++in6ailistlen; | ||
227 | + } | ||
228 | + break; | ||
229 | + default: | ||
230 | + /* Ignore. */ | ||
231 | + break; | ||
232 | + } | ||
233 | + } | ||
234 | + else if (nlmh->nlmsg_type == NLMSG_DONE) | ||
235 | + /* We found the end, leave the loop. */ | ||
236 | + done = true; | ||
237 | + } | ||
238 | + } | ||
239 | + while (! done); | ||
240 | + | ||
241 | + close_not_cancel_no_status (fd); | ||
242 | + | ||
243 | + if (in6ailist != NULL) | ||
244 | + { | ||
245 | + *in6ai = malloc (in6ailistlen * sizeof (**in6ai)); | ||
246 | + if (*in6ai == NULL) | ||
247 | + return -1; | ||
248 | + | ||
249 | + *in6ailen = in6ailistlen; | ||
250 | + | ||
251 | + do | ||
252 | + { | ||
253 | + (*in6ai)[--in6ailistlen] = in6ailist->info; | ||
254 | + in6ailist = in6ailist->next; | ||
255 | + } | ||
256 | + while (in6ailist != NULL); | ||
257 | + } | ||
258 | + | ||
259 | + return 0; | ||
260 | +} | ||
261 | + | ||
262 | + | ||
263 | +/* We don't know if we have NETLINK support compiled in in our | ||
264 | + Kernel. */ | ||
265 | +#if __ASSUME_NETLINK_SUPPORT == 0 | ||
266 | +/* Define in ifaddrs.h. */ | ||
267 | +extern int __no_netlink_support attribute_hidden; | ||
268 | +#else | ||
269 | +# define __no_netlink_support 0 | ||
270 | +#endif | ||
271 | + | ||
272 | + | ||
273 | +void | ||
274 | +attribute_hidden | ||
275 | +__check_pf (bool *seen_ipv4, bool *seen_ipv6, | ||
276 | + struct in6addrinfo **in6ai, size_t *in6ailen) | ||
277 | +{ | ||
278 | + *in6ai = NULL; | ||
279 | + *in6ailen = 0; | ||
280 | + | ||
281 | + if (! __no_netlink_support) | ||
282 | + { | ||
283 | + int fd = __socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); | ||
284 | + | ||
285 | + struct sockaddr_nl nladdr; | ||
286 | + memset (&nladdr, '\0', sizeof (nladdr)); | ||
287 | + nladdr.nl_family = AF_NETLINK; | ||
288 | + | ||
289 | + socklen_t addr_len = sizeof (nladdr); | ||
290 | + | ||
291 | + if (fd >= 0 | ||
292 | + && __bind (fd, (struct sockaddr *) &nladdr, sizeof (nladdr)) == 0 | ||
293 | + && __getsockname (fd, (struct sockaddr *) &nladdr, &addr_len) == 0 | ||
294 | + && make_request (fd, nladdr.nl_pid, seen_ipv4, seen_ipv6, | ||
295 | + in6ai, in6ailen) == 0) | ||
296 | + /* It worked. */ | ||
297 | + return; | ||
298 | + | ||
299 | + if (fd >= 0) | ||
300 | + __close (fd); | ||
301 | + | ||
302 | +#if __ASSUME_NETLINK_SUPPORT == 0 | ||
303 | + /* Remember that there is no netlink support. */ | ||
304 | + __no_netlink_support = 1; | ||
305 | +#else | ||
306 | + /* We cannot determine what interfaces are available. Be | ||
307 | + pessimistic. */ | ||
308 | + *seen_ipv4 = true; | ||
309 | + *seen_ipv6 = true; | ||
310 | +#endif | ||
311 | + } | ||
312 | + | ||
313 | +#if __ASSUME_NETLINK_SUPPORT == 0 | ||
314 | + /* No netlink. Get the interface list via getifaddrs. */ | ||
315 | + struct ifaddrs *ifa = NULL; | ||
316 | + if (getifaddrs (&ifa) != 0) | ||
317 | + { | ||
318 | + /* We cannot determine what interfaces are available. Be | ||
319 | + pessimistic. */ | ||
320 | + *seen_ipv4 = true; | ||
321 | + *seen_ipv6 = true; | ||
322 | + return; | ||
323 | + } | ||
324 | + | ||
325 | + struct ifaddrs *runp; | ||
326 | + for (runp = ifa; runp != NULL; runp = runp->ifa_next) | ||
327 | + if (runp->ifa_addr->sa_family == PF_INET) | ||
328 | + *seen_ipv4 = true; | ||
329 | + else if (runp->ifa_addr->sa_family == PF_INET6) | ||
330 | + *seen_ipv6 = true; | ||
331 | + | ||
332 | + (void) freeifaddrs (ifa); | ||
333 | +#endif | ||
334 | +} | ||
335 | Index: sysdeps/unix/sysv/linux/arm/eabi/check_pf.c | ||
336 | =================================================================== | ||
337 | RCS file: sysdeps/unix/sysv/linux/arm/eabi/check_pf.c | ||
338 | diff -N sysdeps/unix/sysv/linux/arm/eabi/check_pf.c | ||
339 | --- /dev/null 1 Jan 1970 00:00:00 -0000 | ||
340 | +++ sysdeps/unix/sysv/linux/arm/eabi/check_pf.c 31 Oct 2006 17:29:58 -0000 | ||
341 | @@ -0,0 +1 @@ | ||
342 | +#include <sysdeps/unix/sysv/linux/check_pf.c> | ||
343 | |||
diff --git a/meta/packages/glibc/glibc-2.4/glibc-include-fixed.patch b/meta/packages/glibc/glibc-2.4/glibc-include-fixed.patch deleted file mode 100644 index a8e87609f2..0000000000 --- a/meta/packages/glibc/glibc-2.4/glibc-include-fixed.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | With the -nostdinc that we get --with-headers, we need to pull in GCC | ||
2 | 4.3's include-fixed subdir too, because that's what contains limits.h | ||
3 | and syslimits.h now. | ||
4 | |||
5 | |||
6 | for ChangeLog | ||
7 | 2008-01-30 Alexandre Oliva <aoliva@redhat.com> | ||
8 | |||
9 | * configure.in (SYSINCLUDES): Add GCC's include-fixed after include. | ||
10 | * configure: Rebuilt. | ||
11 | |||
12 | Index: configure | ||
13 | =================================================================== | ||
14 | --- configure.orig 2008-01-30 15:40:55.000000000 -0200 | ||
15 | +++ configure 2008-01-31 03:24:36.000000000 -0200 | ||
16 | @@ -5066,7 +5066,12 @@ echo "$as_me: WARNING: | ||
17 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | ||
18 | if test -n "$sysheaders"; then | ||
19 | ccheaders=`$CC -print-file-name=include` | ||
20 | - SYSINCLUDES="-nostdinc -isystem $ccheaders \ | ||
21 | + if test -d "${ccheaders}-fixed"; then | ||
22 | + fixedccheaders="-isystem ${ccheaders}-fixed" | ||
23 | + else | ||
24 | + fixedccheaders= | ||
25 | + fi | ||
26 | + SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \ | ||
27 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" | ||
28 | if test -n "$CXX"; then | ||
29 | cxxversion=`$CXX -dumpversion 2>&5` && | ||
30 | Index: configure.in | ||
31 | =================================================================== | ||
32 | --- configure.in.orig 2008-01-30 15:40:55.000000000 -0200 | ||
33 | +++ configure.in 2008-01-31 03:24:30.000000000 -0200 | ||
34 | @@ -915,7 +915,12 @@ test -n "$aux_missing" && AC_MSG_WARN([ | ||
35 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | ||
36 | if test -n "$sysheaders"; then | ||
37 | ccheaders=`$CC -print-file-name=include` | ||
38 | - SYSINCLUDES="-nostdinc -isystem $ccheaders \ | ||
39 | + if test -d "${ccheaders}-fixed"; then | ||
40 | + fixedccheaders="-isystem ${ccheaders}-fixed" | ||
41 | + else | ||
42 | + fixedccheaders= | ||
43 | + fi | ||
44 | + SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \ | ||
45 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" | ||
46 | if test -n "$CXX"; then | ||
47 | cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` && | ||
48 | |||
49 | -- | ||
50 | Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ | ||
51 | FSF Latin America Board Member http://www.fsfla.org/ | ||
52 | Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} | ||
53 | Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org} | ||
54 | |||
diff --git a/meta/packages/glibc/glibc-2.4/ldd-unbash.patch b/meta/packages/glibc/glibc-2.4/ldd-unbash.patch deleted file mode 100644 index 2fb8854b49..0000000000 --- a/meta/packages/glibc/glibc-2.4/ldd-unbash.patch +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- glibc-2.5/elf/ldd.bash.in.org 2006-04-30 16:06:20.000000000 +0000 | ||
2 | +++ glibc-2.5/elf/ldd.bash.in 2007-03-30 19:18:57.000000000 +0000 | ||
3 | @@ -110,7 +110,7 @@ | ||
4 | # environments where the executed program might not have permissions | ||
5 | # to write to the console/tty. But only bash 3.x supports the pipefail | ||
6 | # option, and we don't bother to handle the case for older bash versions. | ||
7 | -if set -o pipefail 2> /dev/null; then | ||
8 | +if false; then | ||
9 | try_trace() { | ||
10 | eval $add_env '"$@"' | cat | ||
11 | } | ||
diff --git a/meta/packages/glibc/glibc-2.4/ldsocache-varrun.patch b/meta/packages/glibc/glibc-2.4/ldsocache-varrun.patch deleted file mode 100644 index 9994d4f879..0000000000 --- a/meta/packages/glibc/glibc-2.4/ldsocache-varrun.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | This patch moves ld.so.cache from /etc to /var/run. This is for devices | ||
2 | where /etc is JFFS2 or CRAMFS but /var is a ramdisk. | ||
3 | |||
4 | # | ||
5 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
6 | # | ||
7 | |||
8 | --- libc/sysdeps/generic/dl-cache.h~ldsocache-varrun | ||
9 | +++ libc/sysdeps/generic/dl-cache.h | ||
10 | @@ -29,7 +29,7 @@ | ||
11 | #endif | ||
12 | |||
13 | #ifndef LD_SO_CACHE | ||
14 | -# define LD_SO_CACHE SYSCONFDIR "/ld.so.cache" | ||
15 | +# define LD_SO_CACHE "/var/run/ld.so.cache" | ||
16 | #endif | ||
17 | |||
18 | #ifndef add_system_dir | ||
diff --git a/meta/packages/glibc/glibc-2.4/local-stdio-lock.diff b/meta/packages/glibc/glibc-2.4/local-stdio-lock.diff deleted file mode 100644 index 65cd2fd6b4..0000000000 --- a/meta/packages/glibc/glibc-2.4/local-stdio-lock.diff +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | --- | ||
2 | bits/stdio-lock.h | 17 +++++++++++++---- | ||
3 | 1 file changed, 13 insertions(+), 4 deletions(-) | ||
4 | |||
5 | --- glibc-2.7.orig/bits/stdio-lock.h | ||
6 | +++ glibc-2.7/bits/stdio-lock.h | ||
7 | @@ -45,14 +45,23 @@ __libc_lock_define_recursive (typedef, _ | ||
8 | #define _IO_cleanup_region_end(_doit) \ | ||
9 | __libc_cleanup_region_end (_doit) | ||
10 | |||
11 | #if defined _LIBC && !defined NOT_IN_libc | ||
12 | # define _IO_acquire_lock(_fp) \ | ||
13 | - _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp)); \ | ||
14 | - _IO_flockfile (_fp) | ||
15 | + { \ | ||
16 | + _IO_FILE *_IO_acquire_lock_file = _fp; \ | ||
17 | + __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_fct, &_IO_acquire_lock_file); \ | ||
18 | + _IO_flockfile (_IO_acquire_lock_file) | ||
19 | + | ||
20 | +# define _IO_acquire_lock_clear_flags2(_fp) \ | ||
21 | + { \ | ||
22 | + _IO_FILE *_IO_acquire_lock_file = _fp; \ | ||
23 | + __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_clear_flags2_fct, &_IO_acquire_lock_file); \ | ||
24 | + _IO_flockfile (_IO_acquire_lock_file) | ||
25 | |||
26 | # define _IO_release_lock(_fp) \ | ||
27 | - _IO_funlockfile (_fp); \ | ||
28 | - _IO_cleanup_region_end (0) | ||
29 | + __libc_cleanup_region_end (1); \ | ||
30 | + } | ||
31 | + | ||
32 | #endif | ||
33 | |||
34 | #endif /* bits/stdio-lock.h */ | ||
diff --git a/meta/packages/glibc/glibc-2.4/no-z-defs.patch b/meta/packages/glibc/glibc-2.4/no-z-defs.patch deleted file mode 100644 index 48c6a41267..0000000000 --- a/meta/packages/glibc/glibc-2.4/no-z-defs.patch +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | Create a configparms file which disabled no-z-defs. | ||
2 | This is required to build a working glibs for sh4, | ||
3 | without there will be a lot linker errors during the build. | ||
4 | |||
5 | diff -duNr libc.orig/configparms libc/configparms | ||
6 | --- libc.orig/configparms 1970-01-01 10:00:00.000000000 +1000 | ||
7 | +++ libc/configparms 2006-02-23 14:08:18.000000000 +1100 | ||
8 | @@ -0,0 +1 @@ | ||
9 | +no-z-defs=yes | ||
diff --git a/meta/packages/glibc/glibc-2.4/nptl-crosscompile.patch b/meta/packages/glibc/glibc-2.4/nptl-crosscompile.patch deleted file mode 100644 index 18a46ad4f1..0000000000 --- a/meta/packages/glibc/glibc-2.4/nptl-crosscompile.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | --- glibc-2.4/nptl/sysdeps/pthread/configure.in.ark 2006-03-12 00:41:40.000000000 +0100 | ||
2 | +++ glibc-2.4/nptl/sysdeps/pthread/configure.in 2006-03-12 00:44:08.000000000 +0100 | ||
3 | @@ -45,5 +45,6 @@ | ||
4 | AC_MSG_ERROR([the compiler must support C cleanup handling]) | ||
5 | fi | ||
6 | else | ||
7 | - AC_MSG_ERROR(forced unwind support is required) | ||
8 | + AC_MSG_WARN([forced unwind support is required, can't be verified while crosscompiling]) | ||
9 | + AC_DEFINE(HAVE_FORCED_UNWIND) | ||
10 | fi | ||
11 | --- glibc-2.4/nptl/sysdeps/pthread/configure.ark 2006-03-12 00:42:47.000000000 +0100 | ||
12 | +++ glibc-2.4/nptl/sysdeps/pthread/configure 2006-03-12 00:44:08.000000000 +0100 | ||
13 | @@ -153,7 +153,10 @@ | ||
14 | { (exit 1); exit 1; }; } | ||
15 | fi | ||
16 | else | ||
17 | - { { echo "$as_me:$LINENO: error: forced unwind support is required" >&5 | ||
18 | -echo "$as_me: error: forced unwind support is required" >&2;} | ||
19 | - { (exit 1); exit 1; }; } | ||
20 | + { echo "$as_me:$LINENO: WARNING: forced unwind support is required, can't be verified while crosscompiling" >&5 | ||
21 | +echo "$as_me: WARNING: forced unwind support is required, can't be verified while crosscompiling" >&2;} | ||
22 | + cat >>confdefs.h <<\_ACEOF | ||
23 | +#define HAVE_FORCED_UNWIND 1 | ||
24 | +_ACEOF | ||
25 | + | ||
26 | fi | ||
diff --git a/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff b/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff deleted file mode 100644 index 1046efb2a1..0000000000 --- a/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | diff -Nurd ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c | ||
2 | --- ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c 2006-04-14 07:44:30.000000000 +0200 | ||
3 | +++ glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c 2006-12-08 12:53:32.202227000 +0100 | ||
4 | @@ -25,6 +25,9 @@ | ||
5 | #include <sysdep.h> | ||
6 | #include <ldsodefs.h> | ||
7 | |||
8 | +#define __CPU_HAS_FSQRT ((GLRO(dl_hwcap) & PPC_FEATURE_64) != 0) | ||
9 | + | ||
10 | + | ||
11 | static const double almost_half = 0.5000000000000001; /* 0.5 + 2^-53 */ | ||
12 | static const ieee_float_shape_type a_nan = {.word = 0x7fc00000 }; | ||
13 | static const ieee_float_shape_type a_inf = {.word = 0x7f800000 }; | ||
14 | diff -Nurd ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c | ||
15 | --- ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c 2006-04-14 07:44:30.000000000 +0200 | ||
16 | +++ glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c 2006-12-08 12:53:36.992227000 +0100 | ||
17 | @@ -25,6 +25,8 @@ | ||
18 | #include <sysdep.h> | ||
19 | #include <ldsodefs.h> | ||
20 | |||
21 | +#define __CPU_HAS_FSQRT ((GLRO(dl_hwcap) & PPC_FEATURE_64) != 0) | ||
22 | + | ||
23 | static const float almost_half = 0.50000006; /* 0.5 + 2^-24 */ | ||
24 | static const ieee_float_shape_type a_nan = {.word = 0x7fc00000 }; | ||
25 | static const ieee_float_shape_type a_inf = {.word = 0x7f800000 }; | ||
diff --git a/meta/packages/glibc/glibc-2.4/zecke-sane-readelf.patch b/meta/packages/glibc/glibc-2.4/zecke-sane-readelf.patch deleted file mode 100644 index 023b6a51bc..0000000000 --- a/meta/packages/glibc/glibc-2.4/zecke-sane-readelf.patch +++ /dev/null | |||
@@ -1,149 +0,0 @@ | |||
1 | Index: glibc-2.4/configure | ||
2 | =================================================================== | ||
3 | --- glibc-2.4.orig/configure 2006-03-06 12:18:56.000000000 +0100 | ||
4 | +++ glibc-2.4/configure 2006-08-06 14:10:51.000000000 +0200 | ||
5 | @@ -5488,6 +5488,95 @@ | ||
6 | fi | ||
7 | fi | ||
8 | |||
9 | +### XXXX copy and pasted | ||
10 | +# Check for readelf | ||
11 | +# Extract the first word of "$target_alias-readelf", so it can be a program name with args. | ||
12 | +set dummy $target_alias-readelf; ac_word=$2 | ||
13 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
14 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
15 | +if test "${ac_cv_prog_READELF+set}" = set; then | ||
16 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17 | +else | ||
18 | + if test -n "$READELF"; then | ||
19 | + ac_cv_prog_READELF="$READELF" # Let the user override the test. | ||
20 | +else | ||
21 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22 | +for as_dir in $PATH | ||
23 | +do | ||
24 | + IFS=$as_save_IFS | ||
25 | + test -z "$as_dir" && as_dir=. | ||
26 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
27 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28 | + ac_cv_prog_READELF="$target_alias-readelf" | ||
29 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
30 | + break 2 | ||
31 | + fi | ||
32 | +done | ||
33 | +done | ||
34 | +IFS=$as_save_IFS | ||
35 | + | ||
36 | +fi | ||
37 | +fi | ||
38 | +READELF=$ac_cv_prog_READELF | ||
39 | +if test -n "$READELF"; then | ||
40 | + { echo "$as_me:$LINENO: result: $READELF" >&5 | ||
41 | +echo "${ECHO_T}$READELF" >&6; } | ||
42 | +else | ||
43 | + { echo "$as_me:$LINENO: result: no" >&5 | ||
44 | +echo "${ECHO_T}no" >&6; } | ||
45 | +fi | ||
46 | + | ||
47 | + | ||
48 | +if test -z "$ac_cv_prog_READELF"; then | ||
49 | + if test "$build" = "$target"; then | ||
50 | + ac_ct_READELF=$READELF | ||
51 | + # Extract the first word of "readelf", so it can be a program name with args. | ||
52 | +set dummy readelf; ac_word=$2 | ||
53 | +{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
54 | +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
55 | +if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then | ||
56 | + echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
57 | +else | ||
58 | + if test -n "$ac_ct_READELF"; then | ||
59 | + ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | ||
60 | +else | ||
61 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
62 | +for as_dir in $PATH | ||
63 | +do | ||
64 | + IFS=$as_save_IFS | ||
65 | + test -z "$as_dir" && as_dir=. | ||
66 | + for ac_exec_ext in '' $ac_executable_extensions; do | ||
67 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
68 | + ac_cv_prog_ac_ct_READELF="readelf" | ||
69 | + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
70 | + break 2 | ||
71 | + fi | ||
72 | +done | ||
73 | +done | ||
74 | +IFS=$as_save_IFS | ||
75 | + | ||
76 | + test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF="readelf" | ||
77 | +fi | ||
78 | +fi | ||
79 | +ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | ||
80 | +if test -n "$ac_ct_READELF"; then | ||
81 | + { echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5 | ||
82 | +echo "${ECHO_T}$ac_ct_READELF" >&6; } | ||
83 | +else | ||
84 | + { echo "$as_me:$LINENO: result: no" >&5 | ||
85 | +echo "${ECHO_T}no" >&6; } | ||
86 | +fi | ||
87 | + | ||
88 | + READELF=ac_ct_READELF | ||
89 | + else | ||
90 | + READELF="readelf" | ||
91 | + fi | ||
92 | +else | ||
93 | + READELF="$ac_cv_prog_READELF" | ||
94 | +fi | ||
95 | + | ||
96 | +### XXXX copy and pasted | ||
97 | + | ||
98 | echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5 | ||
99 | echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6 | ||
100 | if test "${libc_cv_initfini_array+set}" = set; then | ||
101 | @@ -5507,7 +5596,7 @@ | ||
102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
103 | (exit $ac_status); }; } | ||
104 | then | ||
105 | - if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | ||
106 | + if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then | ||
107 | libc_cv_initfini_array=yes | ||
108 | else | ||
109 | libc_cv_initfini_array=no | ||
110 | @@ -5801,7 +5890,7 @@ | ||
111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
112 | (exit $ac_status); }; } | ||
113 | then | ||
114 | - if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then | ||
115 | + if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then | ||
116 | libc_cv_z_combreloc=yes | ||
117 | else | ||
118 | libc_cv_z_combreloc=no | ||
119 | Index: glibc-2.4/configure.in | ||
120 | =================================================================== | ||
121 | --- glibc-2.4.orig/configure.in 2006-03-01 10:17:40.000000000 +0100 | ||
122 | +++ glibc-2.4/configure.in 2006-08-06 14:09:31.000000000 +0200 | ||
123 | @@ -1350,6 +1350,8 @@ | ||
124 | fi | ||
125 | fi | ||
126 | |||
127 | + AC_CHECK_TARGET_TOOL([READELF],[readelf],[readelf],[$PATH]) | ||
128 | + | ||
129 | AC_CACHE_CHECK(for .preinit_array/.init_array/.fini_array support, | ||
130 | libc_cv_initfini_array, [dnl | ||
131 | cat > conftest.c <<EOF | ||
132 | @@ -1361,7 +1363,7 @@ | ||
133 | if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c | ||
134 | -static -nostartfiles -nostdlib 1>&AS_MESSAGE_LOG_FD]) | ||
135 | then | ||
136 | - if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | ||
137 | + if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then | ||
138 | libc_cv_initfini_array=yes | ||
139 | else | ||
140 | libc_cv_initfini_array=no | ||
141 | @@ -1543,7 +1545,7 @@ | ||
142 | dnl introducing new options this is not easily doable. Instead use a tool | ||
143 | dnl which always is cross-platform: readelf. To detect whether -z combreloc | ||
144 | dnl look for a section named .rel.dyn. | ||
145 | - if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then | ||
146 | + if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then | ||
147 | libc_cv_z_combreloc=yes | ||
148 | else | ||
149 | libc_cv_z_combreloc=no | ||