diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-17 08:02:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-17 08:02:17 +0000 |
commit | 6c052003bda07641309dcd4fe4a5158d24f5d607 (patch) | |
tree | 3a4869ea7ff0fefdbd6a7cfde71e8bdc35e57f2a | |
parent | 92ce46766b7d3f6d65fd345ab612fc04e55b89cc (diff) | |
download | glibc-6c052003bda07641309dcd4fe4a5158d24f5d607.zip glibc-6c052003bda07641309dcd4fe4a5158d24f5d607.tar.gz glibc-6c052003bda07641309dcd4fe4a5158d24f5d607.tar.bz2 |
Update.
2003-09-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
stack which is aligned (mod 16).
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/clone.S | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-09-17 Ulrich Drepper <drepper@redhat.com> + + * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a + stack which is aligned (mod 16). + 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net> Hans-Peter Nilsson <hp@axis.com> diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S index 1f7417e..94c6a72 100644 --- a/sysdeps/unix/sysv/linux/i386/clone.S +++ b/sysdeps/unix/sysv/linux/i386/clone.S @@ -61,8 +61,10 @@ ENTRY (BP_SYM (__clone)) jz SYSCALL_ERROR_LABEL #endif - /* Insert the argument onto the new stack. */ - subl $16,%ecx + /* Insert the argument onto the new stack. Make sure the new + thread is started with an alignment of (mod 16). */ + andl $0xfffffff0, %ecx + subl $24,%ecx movl ARG(%esp),%eax /* no negative argument counts */ movl %eax,12(%ecx) |