[uClibc]mmap bug in uClibc 0.9.19 on mips
Erik Andersen
andersen at codepoet.org
Thu Mar 6 15:47:24 UTC 2003
On Thu Mar 06, 2003 at 05:16:44PM +0200, Sirotkin, Alexander wrote:
> Just tried uClibc on our mips platform and discovered
> the mmap bug.
>
> I'm still not sure what exactly happens, mmap() returns
> a valid address but it does not point to a correct physical
> memory address.
>
> The same code works on 0.9.16 and with glibc.
Could you check if applying this to uClibc make mmap
work as expected on mips? It may be that the mmap2
syscall is totally broken on mips,
--- libc/sysdeps/linux/mips/_mmap.c 26 Feb 2003 02:13:55 -0000 1.2
+++ libc/sysdeps/linux/mips/_mmap.c 6 Mar 2003 15:45:50 -0000
@@ -5,7 +5,9 @@
#include <sys/syscall.h>
+#if 0
#ifdef __NR_mmap2
# undef __NR_mmap
# define __NR_mmap __NR_mmap2
+#endif
#endif
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list