]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix code generated if mmap2 is available when compiling but no at
authorUlrich Drepper <drepper@redhat.com>
Sun, 16 Jan 2000 04:52:59 +0000 (04:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 16 Jan 2000 04:52:59 +0000 (04:52 +0000)
runtime.

sysdeps/unix/sysv/linux/i386/mmap64.S

index 6d7dfe40224e1bcf37c3629474d639d9e3bb7bde..9a35589398759673ad868e16751f392607ac2dc7 100644 (file)
@@ -91,16 +91,12 @@ L(einval):
        movl %ebx, %edx
 
        cmpl $0, 28(%esp)
-       jne L(einval)
+       jne L(einval2)
 
        movl $SYS_ify(mmap), %eax       /* System call number in %eax.  */
 
        lea 4(%esp), %ebx               /* Address of args is 1st arg.  */
 
-# ifdef __NR_mmap2
-       jmp L(do_syscall)
-# else
-
        /* Do the system call trap.  */
        int $0x80
 
@@ -112,14 +108,15 @@ L(einval):
        ja SYSCALL_ERROR_LABEL
 
        /* Successful; return the syscall's value.  */
+#ifndef __NR_mmap2
 L(pseudo_end):
+#endif
        ret
 
-L(einval):
+L(einval2):
        movl %edx, %ebx
        movl $-EINVAL, %eax
        jmp SYSCALL_ERROR_LABEL
-# endif
 #endif
 
 PSEUDO_END (__mmap64)