]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2004-12-21 Jakub Jelinek <jakub@redhat.com>
authorRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 08:45:38 +0000 (08:45 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 16 Feb 2005 08:45:38 +0000 (08:45 +0000)
[BZ #723]
* sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
calling fn is 16 byte aligned.
* sysdeps/i386/tst-stack-align.h: New file.

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

index acd43dfb0bca169c627cf45c990643ec4eb0a422..c7d31f7a327b57b40a6f66aba2b6406740dbcfea 100644 (file)
@@ -67,7 +67,7 @@ ENTRY (BP_SYM (__clone))
        /* 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
+       subl    $28,%ecx
        movl    ARG(%esp),%eax          /* no negative argument counts */
        movl    %eax,12(%ecx)