From 4c4094e86e663b0d7fbbe0e57eca1221e6734006 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 4 Nov 2006 20:25:06 +0100 Subject: [PATCH] preloader: Clear %gs again before calling the interpreter entry point. --- loader/preloader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/preloader.c b/loader/preloader.c index bd303da979c..381b8e40231 100644 --- a/loader/preloader.c +++ b/loader/preloader.c @@ -213,6 +213,7 @@ __ASM_GLOBAL_FUNC(_start, "\txor %eax,%eax\n" "\txor %ecx,%ecx\n" "\txor %edx,%edx\n" + "\tmov %ax,%gs\n" /* clear %gs again */ "\tret\n") /* wrappers for Linux system calls */