Ver código fonte

oops, we want to jmp to the syscall handler, not call it

Mike Frysinger 19 anos atrás
pai
commit
f983b69c2b

+ 1 - 1
libc/sysdeps/linux/i386/clone.S

@@ -115,7 +115,7 @@ __clone:
 	int	$0x80
 
 __error:
-	call	__syscall_error
+	jmp	__syscall_error
 
 .size __clone,.-__clone
 

+ 1 - 1
libc/sysdeps/linux/i386/mmap64.S

@@ -90,7 +90,7 @@ L_einval:
 	jmp __error
 
 __error:
-	call	__syscall_error
+	jmp	__syscall_error
 
 .size mmap64,.-mmap64
 

+ 1 - 1
libc/sysdeps/linux/i386/syscall.S

@@ -49,6 +49,6 @@ syscall:
 	ret			/* Return to caller.  */
 
 __error:
-	call	__syscall_error
+	jmp	__syscall_error
 
 .size syscall,.-syscall

+ 1 - 1
libc/sysdeps/linux/i386/vfork.S

@@ -27,7 +27,7 @@ __vfork:
 	ret
 
 __error:
-	call	__syscall_error
+	jmp	__syscall_error
 
 .size __vfork,.-__vfork