2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

criu: x86_32: change stack align to 16 bit on parasite head

GCC now assumes by default that the stack is aligned to a 16-byte boundary.
It's very unlikely that parasite head's first call will contain
an SSE instruction which will segfault, but to be pedantically correct
will lose additional 8 bytes.

See also:
http://sourceforge.net/p/fbc/bugs/659/

Signed-off-by: Dmitry Safonov <dsafonov@odin.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Dmitry Safonov 2015-12-07 17:39:00 +03:00 committed by Pavel Emelyanov
parent b2b86052bc
commit 60595eb432

View File

@ -22,8 +22,8 @@ END(__export_parasite_head_start)
#else /* CONFIG_X86_64 */
ENTRY(__export_parasite_head_start)
subl $8, %esp
andl $~7, %esp
subl $16, %esp
andl $~15, %esp
pushl $0
movl %esp, %ebp
call 1f