From 9e79eb43b9ce606a10a8815e4858b377fa94c979 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Thu, 23 Mar 2017 07:25:19 +0900 Subject: [PATCH] [x86/Linux] 16-byte aligned TheUMEntryPrestub (#10376) --- src/vm/i386/umthunkstub.S | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vm/i386/umthunkstub.S b/src/vm/i386/umthunkstub.S index 7f0250368b..98f96ef6ec 100644 --- a/src/vm/i386/umthunkstub.S +++ b/src/vm/i386/umthunkstub.S @@ -10,12 +10,16 @@ // eax = UMEntryThunk* // NESTED_ENTRY TheUMEntryPrestub, _TEXT, UnhandledExceptionHandlerUnix +#define STK_ALIGN_PADDING 8 + sub esp, STK_ALIGN_PADDING push eax // UMEntryThunk* + CHECK_STACK_ALIGNMENT call C_FUNC(TheUMEntryPrestubWorker) - add esp, 4 - // eax = PCODE + add esp, (4 + STK_ALIGN_PADDING) + // eax = PCODE jmp eax // Tail Jmp +#undef STK_ALIGN_PADDING NESTED_END TheUMEntryPrestub, _TEXT // -- 2.34.1