mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
* sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL even if bits 10 a 11 are non-zero. * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
This commit is contained in:
parent
1bc777b883
commit
b0af120fd0
@ -1,5 +1,9 @@
|
||||
2000-08-25 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
|
||||
even if bits 10 a 11 are non-zero.
|
||||
* sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
|
||||
|
||||
* Makeconfig: Ensures the soversions.mk part of Makefile gets
|
||||
included before building gnu/lib-names.h
|
||||
Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
|
||||
|
@ -42,7 +42,7 @@ ENTRY (__mmap)
|
||||
movl 32(%esp), %esi
|
||||
movl 36(%esp), %edi
|
||||
movl 40(%esp), %ebp
|
||||
testl $0x3ff, %ebp
|
||||
testl $0xfff, %ebp
|
||||
movl $-EINVAL, %eax
|
||||
jne L(skip)
|
||||
shrl $12, %ebp /* mmap2 takes the offset in pages. */
|
||||
|
@ -48,7 +48,7 @@ ENTRY (BP_SYM (__mmap64))
|
||||
|
||||
movl OFFLO(%esp), %edx
|
||||
movl OFFHI(%esp), %ecx
|
||||
testl $0x3ff, %edx
|
||||
testl $0xfff, %edx
|
||||
jne L(einval)
|
||||
shrdl $12, %ecx, %edx /* mmap2 takes the offset in pages. */
|
||||
shrl $12, %ecx
|
||||
|
Loading…
Reference in New Issue
Block a user