Update.
* sysdeps/unix/sysv/linux/i386/clone.S: When not using PIC don't use jecxz since the label might be far away.
This commit is contained in:
parent
7804eb37e8
commit
69963deb2c
|
@ -1,5 +1,8 @@
|
||||||
1999-01-26 Ulrich Drepper <drepper@cygnus.com>
|
1999-01-26 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/i386/clone.S: When not using PIC don't
|
||||||
|
use jecxz since the label might be far away.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sigaction.c: Update comment to say the
|
* sysdeps/unix/sysv/linux/sigaction.c: Update comment to say the
|
||||||
__libc_missing_rt_sigs is defined here.
|
__libc_missing_rt_sigs is defined here.
|
||||||
* sysdeps/unix/sysv/linux/sigpending.c: Only declare
|
* sysdeps/unix/sysv/linux/sigpending.c: Only declare
|
||||||
|
|
|
@ -32,9 +32,19 @@ ENTRY(__clone)
|
||||||
/* Sanity check arguments. */
|
/* Sanity check arguments. */
|
||||||
movl $-EINVAL,%eax
|
movl $-EINVAL,%eax
|
||||||
movl 4(%esp),%ecx /* no NULL function pointers */
|
movl 4(%esp),%ecx /* no NULL function pointers */
|
||||||
|
#ifdef PIC
|
||||||
jecxz SYSCALL_ERROR_LABEL
|
jecxz SYSCALL_ERROR_LABEL
|
||||||
|
#else
|
||||||
|
testl %ecx,%ecx
|
||||||
|
jz SYSCALL_ERROR_LABEL
|
||||||
|
#endif
|
||||||
movl 8(%esp),%ecx /* no NULL stack pointers */
|
movl 8(%esp),%ecx /* no NULL stack pointers */
|
||||||
|
#ifdef PIC
|
||||||
jecxz SYSCALL_ERROR_LABEL
|
jecxz SYSCALL_ERROR_LABEL
|
||||||
|
#else
|
||||||
|
testl %ecx,%ecx
|
||||||
|
jz SYSCALL_ERROR_LABEL
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Insert the argument onto the new stack. */
|
/* Insert the argument onto the new stack. */
|
||||||
subl $8,%ecx
|
subl $8,%ecx
|
||||||
|
|
Loading…
Reference in New Issue