kd@flaga.is wrote: > > Hello, > > Thanks to Wolfgang Denk and Leif Lindholm regarding my problems with the > interrupt vectors. > I examined even better what was happening and it is probably a faulty > device driver causing the strange crasses. > At least the application is always running in the driver when it > crashes......... So a stupid user error 8-). > > Anyway I am now trying to get the system to run on a self contained > Glibc2.1 system that will eventually be running from > flash. I have a lot of applications crassing all over. I believe it is due > to the cache size assumption made in Glibc2.1 that so many have mentioned > in the past few weeks. Does any one have a quick-hack-patch for fixing this > before I start to hack up a > code I do not understand the least 8-)? Are there any other known problems > with Glibc 2.1? Apply this diff, and simply move sysdeps/powerpc/memset.S out of the way for now: diff -ur orig/glibc-2.1.1/sysdeps/powerpc/dl-machine.c glibc-2.1.1/sysdeps/powerpc/dl-machine.c --- orig/glibc-2.1.1/sysdeps/powerpc/dl-machine.c Fri Mar 5 23:41:23 1999 +++ glibc-2.1.1/sysdeps/powerpc/dl-machine.c Mon May 17 20:59:06 1999 @@ -250,7 +250,11 @@ PowerPC processors have line sizes of exactly 32 bytes. */ size_modified = lazy ? rel_offset_words : PLT_INITIAL_ENTRY_WORDS; +#ifdef PPC_CACHELINESIZE_32 for (i = 0; i < size_modified; i+= 8) +#else + for (i = 0; i < size_modified; i+= 4) +#endif PPC_DCBST (plt + i); PPC_DCBST (plt + size_modified - 1); PPC_SYNC; This did the trick for me. If you want to use soft floats (you will have to compile all libraries and programs with -msoft-float) you should pipe this diff into the attached script (standing in sysdeps/powerpc): diff -ur orig/glibc-2.1.1/sysdeps/powerpc/Dist glibc-2.1.1/sysdeps/powerpc/Dist --- orig/glibc-2.1.1/sysdeps/powerpc/Dist Tue Sep 15 00:57:08 1998 +++ glibc-2.1.1/sysdeps/powerpc/Dist Tue May 4 17:00:33 1999 @@ -1,7 +1,3 @@ dl-machine.c dl-start.S -fenv_const.c -fenv_libc.h ppc-mcount.S -fe_nomask.c -t_sqrt.c diff -ur orig/glibc-2.1.1/sysdeps/powerpc/Makefile glibc-2.1.1/sysdeps/powerpc/Makefile --- orig/glibc-2.1.1/sysdeps/powerpc/Makefile Wed Nov 18 00:48:00 1998 +++ glibc-2.1.1/sysdeps/powerpc/Makefile Tue May 4 17:01:07 1999 @@ -1,7 +1,3 @@ -ifeq ($(subdir),math) -libm-support += fenv_const fe_nomask t_sqrt -endif - ifeq ($(subdir),gmon) sysdep_routines += ppc-mcount endif There was also a PPC linker bug mentioned on the glibc list a while ago, which was said to be fixed in CVS, but I haven't checked this out yet as I have enough trouble debugging kernel problems right now. //Marcus -- -------------------------------+------------------------------------ Marcus Sundberg | http://www.stacken.kth.se/~mackan/ Royal Institute of Technology | Phone: +46 707 295404 Stockholm, Sweden | E-Mail: mackan@stacken.kth.se