diff options
Diffstat (limited to 'toolchain/uClibc/patches/001-fix_mmap.patch')
-rw-r--r-- | toolchain/uClibc/patches/001-fix_mmap.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toolchain/uClibc/patches/001-fix_mmap.patch b/toolchain/uClibc/patches/001-fix_mmap.patch index 4775e8c332..38cf60a96a 100644 --- a/toolchain/uClibc/patches/001-fix_mmap.patch +++ b/toolchain/uClibc/patches/001-fix_mmap.patch @@ -1,5 +1,5 @@ ---- uClibc-0.9.29.oorig/test/mmap/mmap2.c (revision 0) -+++ uClibc-0.9.29/test/mmap/mmap2.c (revision 18616) +--- /dev/null ++++ b/test/mmap/mmap2.c @@ -0,0 +1,41 @@ +/* When trying to map /dev/mem with offset 0xFFFFF000 on the ARM platform, mmap + * returns -EOVERFLOW. @@ -42,8 +42,8 @@ + close(fd); + return 0; +} ---- uClibc-0.9.29.oorig/libc/sysdeps/linux/arm/mmap.c (revision 18615) -+++ uClibc-0.9.29/libc/sysdeps/linux/arm/mmap.c (revision 18616) +--- a/libc/sysdeps/linux/arm/mmap.c ++++ b/libc/sysdeps/linux/arm/mmap.c @@ -27,7 +27,6 @@ __ptr_t mmap(__ptr_t addr, size_t len, i #elif defined (__NR_mmap2) @@ -71,8 +71,8 @@ } #elif defined (__NR_mmap) # define __NR__mmap __NR_mmap ---- uClibc-0.9.29.oorig/libc/sysdeps/linux/common/mmap64.c (revision 18615) -+++ uClibc-0.9.29/libc/sysdeps/linux/common/mmap64.c (revision 18616) +--- a/libc/sysdeps/linux/common/mmap64.c ++++ b/libc/sysdeps/linux/common/mmap64.c @@ -58,8 +58,13 @@ __ptr_t mmap64(__ptr_t addr, size_t len, __set_errno(EINVAL); return MAP_FAILED; |