--- uClibc-0.9.19/ldso/ldso/ldso.c 2003-03-01 14:02:44.000000000 +0300 +++ uClibc/ldso/ldso/ldso.c 2004-03-31 22:58:53.000000000 +0400 @@ -398,10 +398,11 @@ #endif if (dpnt->d_tag < 24) { tpnt->dynamic_info[dpnt->d_tag] = dpnt->d_un.d_val; - if (dpnt->d_tag == DT_TEXTREL) { +#if !defined(__mips__) + if (dpnt->d_tag == DT_TEXTREL) +#endif tpnt->dynamic_info[DT_TEXTREL] = 1; } - } dpnt++; } @@ -437,7 +438,9 @@ #else #warning "Debugging threads on mips won't work till someone fixes this..." #endif +#if !defined(__mips__) if (dpnt->d_tag == DT_TEXTREL) +#endif app_tpnt->dynamic_info[DT_TEXTREL] = 1; dpnt++; } --- uClibc-0.9.19/libc/sysdeps/linux/mips/_mmap.c 2003-02-26 05:13:55.000000000 +0300 +++ uClibc/libc/sysdeps/linux/mips/_mmap.c 2004-03-31 22:59:00.000000000 +0400 @@ -4,10 +4,12 @@ #include #include +#if 0 #ifdef __NR_mmap2 # undef __NR_mmap # define __NR_mmap __NR_mmap2 #endif +#endif _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot, int, flags, int, fd, __off_t, offset); --- uClibc-0.9.19/Makefile 2003-03-03 09:47:56.000000000 +0300 +++ uClibc/Makefile 2004-03-31 22:58:52.000000000 +0400 @@ -127,11 +127,11 @@ elif [ "$(TARGET_ARCH)" = "mipsel" ];then \ ln -fs $(KERNEL_SOURCE)/include/asm-mips include/asm; \ cd $(shell pwd)/libc/sysdeps/linux; \ - ln -fs mips mipsel; \ + ln -fns mips mipsel; \ cd $(shell pwd)/ldso/ldso; \ - ln -fs mips mipsel; \ + ln -fns mips mipsel; \ cd $(shell pwd)/libpthread/linuxthreads/sysdeps; \ - ln -fs mips mipsel; \ + ln -fns mips mipsel; \ elif [ "$(TARGET_ARCH)" = "cris" ];then \ ln -fs $(KERNEL_SOURCE)/include/asm-cris include/asm; \ else \ @@ -215,7 +215,9 @@ ln -sf $$i $(PREFIX)$(DEVEL_PREFIX)/lib/`echo $$i | sed -e 's/\.a$$/_pic.a/'`; \ done endif - + # Install precursors for later optimization + install -d $(PREFIX)/$(DEVEL_PREFIX)/lib/optinfo + install -m 644 libc/libc.a libc/misc/internals/interp.o $(PREFIX)$(DEVEL_PREFIX)/lib/optinfo/ # Installs run-time libraries and helper apps onto the host system # allowing cross development. If you want to deploy to a target