patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-powerpc.patch
author |
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
|
Tue May 08 17:48:32 2007 +0000 (2007-05-08) |
changeset 78 |
c3868084d81a |
permissions |
-rw-r--r-- |
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);
Shut uClibc finish step: there really is nothing to do;
Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);
Did not catch the make errors: fixed the pattern matching in scripts/functions;
Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;
Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
|
1 |
In file included from dynamic-link.h:21,
|
yann@1
|
2 |
from dl-reloc.c:153:
|
yann@1
|
3 |
../sysdeps/powerpc/dl-machine.h: In function '_dl_relocate_object':
|
yann@1
|
4 |
../sysdeps/powerpc/dl-machine.h:399: error: invalid storage class for function 'elf_machine_rela_relative'
|
yann@1
|
5 |
make[2]: *** [/home/dank/queue/jobdir.dual2/crosstool-dev/build/powerpc-750-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/build-glibc/elf/dl-reloc.o] Error 1
|
yann@1
|
6 |
--- glibc-2.2.5/sysdeps/powerpc/dl-machine.h.old Thu Mar 17 13:28:17 2005
|
yann@1
|
7 |
+++ glibc-2.2.5/sysdeps/powerpc/dl-machine.h Thu Mar 17 13:29:03 2005
|
yann@1
|
8 |
@@ -393,7 +393,14 @@
|
yann@1
|
9 |
reloc_addr, finaladdr, rinfo);
|
yann@1
|
10 |
}
|
yann@1
|
11 |
|
yann@1
|
12 |
-static inline void
|
yann@1
|
13 |
+#if __GNUC__ >= 4
|
yann@1
|
14 |
+ auto inline void
|
yann@1
|
15 |
+#else
|
yann@1
|
16 |
+ static inline void
|
yann@1
|
17 |
+#endif
|
yann@1
|
18 |
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
|
yann@1
|
19 |
+ __attribute ((always_inline))
|
yann@1
|
20 |
+#endif
|
yann@1
|
21 |
elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
|
yann@1
|
22 |
Elf32_Addr *const reloc_addr)
|
yann@1
|
23 |
{
|