From: Roland McGrath Date: Wed, 16 Feb 2005 08:45:38 +0000 (+0000) Subject: 2004-12-21 Jakub Jelinek X-Git-Tag: cvs/fedora-glibc-2_3-20050216T1256~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b4b83c94d0477b7d076ff8d8d3c791ea80058a2;p=thirdparty%2Fglibc.git 2004-12-21 Jakub Jelinek [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. --- diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S index acd43dfb0bc..c7d31f7a327 100644 --- a/sysdeps/unix/sysv/linux/i386/clone.S +++ b/sysdeps/unix/sysv/linux/i386/clone.S @@ -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)