preloader: Add proper CFI instructions to _start functions.

Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Keno Fischer 2016-08-11 15:04:39 -04:00 committed by Alexandre Julliard
parent be90480c3c
commit 5f38bfed7c
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ struct
void _start(void);
extern char _end[];
__ASM_GLOBAL_FUNC(_start,
__ASM_CFI("\t.cfi_undefined %eip\n")
"\tmovl $243,%eax\n" /* SYS_set_thread_area */
"\tmovl $thread_ldt,%ebx\n"
"\tint $0x80\n" /* allocate gs segment */
@ -363,6 +364,7 @@ void *thread_data[256];
void _start(void);
extern char _end[];
__ASM_GLOBAL_FUNC(_start,
__ASM_CFI(".cfi_undefined %rip\n\t")
"movq %rsp,%rax\n\t"
"leaq -144(%rsp),%rsp\n\t" /* allocate some space for extra aux values */
"movq %rax,(%rsp)\n\t" /* orig stack pointer */