From a6440375ca19e7abd2b13d1420785cbdc83f2b35 Mon Sep 17 00:00:00 2001 From: frustaci Date: Sun, 28 Jul 2013 10:39:55 -0300 Subject: [PATCH] Update x86.S GCC now assumes by default that the stack is aligned to a 16-byte boundary in Linux x86, so let's do our part to honour that. :) Otherwise native code that depends on the stack to be aligned to 16 bytes would seg fault (like SSE). https://groups.google.com/forum/#!topic/avian/SyCl-Jfw2U8 --- src/x86.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/x86.S b/src/x86.S index d74c690b69..a04b4915d6 100644 --- a/src/x86.S +++ b/src/x86.S @@ -450,10 +450,10 @@ GLOBAL(vmNativeCall): subl %ecx,%esp -# ifdef __APPLE__ - // align to a 16 byte boundary on Darwin +//# ifdef __APPLE__ + // align to a 16 byte boundary andl $0xFFFFFFF0,%esp -# endif +//# endif // copy arguments into place movl $0,%ecx