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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 2004-07-09 at 10:38:30 Martin Egholm Nielsen wrote: >>> /powerpc-405-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/csu/crtn.o >>> /root/crosstool-0.28-rc28/build/powerpc-405-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/linuxthreads/libpthread.so: >>> undefined reference to `i_am_not_a_leaf' >> I can't reproduce your problem here. Can you post the >> exact steps to reproduce it? > Sure... I just modified TARGET_CFLAGS in "powerpc-405.dat": > TARGET_CFLAGS="-Os -mcpu=405" This is precisely what my patch intended to do, but not for *all* source files, only for initfini.c. I only misread your glibc version, sorry. ;) It simply adds the lines: ifeq ($(subdir),linuxthreads) CFLAGS-pt-initfini.s = $(fno-unit-at-a-time) endif to linuxthreads/sysdeps/unix/sysv/linux/powerpc/Makefile. However, this depends on $(fno-unit-at-a-time) being introduced by the various configure scripts, and of course the above directory needs to exist, which isn't the case with 2.2.5, it seems. > http://lists.arm.linux.org.uk/pipermail/linux-arm-toolchain/2004-June/000040.html > So I just added the "-fno-unit-at-a-time" parameter to the list, as well: Yes, that should fix it, but it isn't needed to compile _everything_ using that flag, only initfini.c (which is used to generate crt*.s). That's why the patch for glibc 2.3.2 only adds it to CFLAGS-initfini.s and CFLAGS-pt-initfini.s. I've attempted to backport glibc-2.3.2-allow-gcc-3.4-nounit.patch to apply to glibc 2.2.5, can you please try the following patches? http://www.andric.com/cross/patches/glibc-2.2.5-allow-gcc-3.4-nounit.patch.bz2 http://www.andric.com/cross/patches/glibc-linuxthreads-2.2.5-allow-gcc-3.4-nounit.patch.bz2
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |