|
From: <sv...@va...> - 2012-03-07 15:56:39
|
sewardj 2012-03-07 15:56:29 +0000 (Wed, 07 Mar 2012)
New Revision: 12424
Log:
x86-darwin: _start: keep the stack 16-aligned. Fixes #295428.
(Jack Howarth, ho...@ni...)
Modified files:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c (+1 -0)
===================================================================
--- trunk/coregrind/m_main.c 2012-03-07 15:26:50 +00:00 (rev 12423)
+++ trunk/coregrind/m_main.c 2012-03-07 15:56:29 +00:00 (rev 12424)
@@ -2840,6 +2840,7 @@
"\taddl $"VG_STRINGIFY(VG_STACK_ACTIVE_SZB)", %eax\n"
"\tsubl $16, %eax\n"
"\tandl $~15, %eax\n"
+ "\tsubl $12, %esp\n" // keep stack 16 aligned; see #295428
/* install it, and collect the original one */
"\txchgl %eax, %esp\n"
/* call _start_in_C_darwin, passing it the startup %esp */
|