X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b26b6755df5abde20d5ef5593dda6b4219b2c9c2..d4331562d788729ca2a61182e2814328b5b4c137:/toolchain/uClibc/patches/001-fix_mmap.patch diff --git a/toolchain/uClibc/patches/001-fix_mmap.patch b/toolchain/uClibc/patches/001-fix_mmap.patch index 4775e8c33..38cf60a96 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;