aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-02-01 18:20:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-02-01 18:20:21 +0000
commit5163b4b76f61e361f0f4bbe3b96732b12e5c9b1a (patch)
treeb773950fc66e6323c51b5b427d077c05033362e5 /ChangeLog
parent0f0f4db5b76c27a7fe5a4247e09c314d4e15c34f (diff)
downloadglibc-5163b4b76f61e361f0f4bbe3b96732b12e5c9b1a.tar
glibc-5163b4b76f61e361f0f4bbe3b96732b12e5c9b1a.tar.gz
glibc-5163b4b76f61e361f0f4bbe3b96732b12e5c9b1a.tar.bz2
glibc-5163b4b76f61e361f0f4bbe3b96732b12e5c9b1a.zip
Fix MIPS mmap negative offset handling for consistency (bug 19550).
The handling of negative offsets in MIPS mmap is inconsistent with other architectures, as shown by failure of the test posix/tst-mmap-offset for o32 and n32. The MIPS mmap syscall uses a signed argument and does a signed arithmetic shift on it, whereas the glibc semantics expected by that test are for the offset to be considered as a large positive offset. This patch makes MIPS consistent with other architectures as far as possible by using the mmap2 syscall on o32 (#including the generic implementation), and making mmap not an alias for mmap64 for n32, with a custom implementation for n32 that zero-extends the offset argument to 64-bit before calling the mmap syscall. Tested for MIPS64 (o32, n32, n64). [BZ #19550] * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to .... * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here. * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file. * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64): New syscall entry. * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap): New syscall entry. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove syscall entry.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a0fd225cc6..b1e619148e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2016-02-01 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #19550]
+ * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
+ * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
+ * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
+ * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
+ * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
+ New syscall entry.
+ * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
+ New syscall entry.
+ * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
+ syscall entry.
+
2016-01-27 Paul Eggert <eggert@cs.ucla.edu>
[BZ #18240]