This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
[Patch] CT 0.3 - glibc-2.2.5-allow-gcc-4.0-mipsel
- From: Piete Sartain <kaear at kaear dot co dot uk>
- To: crossgcc at sources dot redhat dot com
- Date: Wed, 30 Mar 2005 12:37:11 +0100
- Subject: [Patch] CT 0.3 - glibc-2.2.5-allow-gcc-4.0-mipsel
I copied the relevant sections out of
http://kegel.com/crosstool/crosstool-0.29/patches/glibc-2.3-20050307/glibc-2.3.4-allow-gcc-4.0-powerpc64.patch
for a mipsel target.
The build still fails, but now with an assembler error at crtbegin.o.
Build log follows:
echo '#define FLOAT' > fp-bit.c
echo '#ifdef __MIPSEL__' >> fp-bit.c
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
echo '#endif' >> fp-bit.c
echo '#define QUIET_NAN_NEGATED' >> fp-bit.c
cat
/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc/config/fp-bit.c
>> fp-bit.c
echo '#ifdef __MIPSEL__' > dp-bit.c
echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
echo '#endif' >> dp-bit.c
echo '#define QUIET_NAN_NEGATED' >> dp-bit.c
cat
/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc/config/fp-bit.c
>> dp-bit.c
/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/build-gcc-core/gcc/xgcc
-B/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/build-gcc-core/gcc/
-B/opt/crosstool/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/mipsel-unknown-linux-gnu/bin/
-B/opt/crosstool/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/mipsel-unknown-linux-gnu/lib/
-isystem
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/mipsel-unknown-linux-gnu/include
-isystem
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/mipsel-unknown-linux-gnu/sys-include
-O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -I. -I.
-I/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc
-I/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc/.
-I/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0
-20050305/gcc/../include
-I/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc/../libcpp/include
-g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time \
-Dinhibit_libc -c
/home/administrator/src/crosstool/crosstool/build/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/gcc-4.0-20050305/gcc/crtstuff.c
-DCRT_BEGIN \
-o crtbegin.o
as: unrecognized option `-EL'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory
`/home/administrator/src/crosstool/crosstool-0.30/bui
ld/mipsel-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.2.5/build-gcc-core/gcc'
make: *** [all-gcc] Error 2
--- glibc-2.2.5/sysdeps/mips/dl-machine.h.old 2005-03-28 18:19:56.000000000 +0100
+++ glibc-2.2.5/sysdeps/mips/dl-machine.h 2005-03-28 18:25:15.000000000 +0100
@@ -534,14 +534,28 @@
}
}
-static inline void
+#if __GNUC__ >= 4
+ auto inline void
+#else
+ static inline void
+#endif
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+ __attribute ((always_inline))
+#endif
elf_machine_rel_relative (ElfW(Addr) l_addr, const ElfW(Rel) *reloc,
ElfW(Addr) *const reloc_addr)
{
/* XXX Nothing to do. There is no relative relocation, right? */
}
-static inline void
+#if __GNUC__ >= 4
+ auto inline void
+#else
+ static inline void
+#endif
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+ __attribute ((always_inline))
+#endif
elf_machine_lazy_rel (struct link_map *map,
ElfW(Addr) l_addr, const ElfW(Rel) *reloc)
{
@@ -550,7 +564,14 @@
#ifndef RTLD_BOOTSTRAP
/* Relocate GOT. */
-static inline void
+#if __GNUC__ >= 4
+ auto inline void
+#else
+ static inline void
+#endif
+#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
+ __attribute ((always_inline))
+#endif
elf_machine_got_rel (struct link_map *map, int lazy)
{
ElfW(Addr) *got;
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com