Keno Fischer : preloader: Add proper CFI instructions to _start functions.
Alexandre Julliard
julliard at winehq.org
Tue Aug 16 10:41:00 CDT 2016
Module: wine
Branch: master
Commit: 5f38bfed7cf408c1734d6bff8770c3b11edc665f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f38bfed7cf408c1734d6bff8770c3b11edc665f
Author: Keno Fischer <keno at juliacomputing.com>
Date: Thu Aug 11 15:04:39 2016 -0400
preloader: Add proper CFI instructions to _start functions.
Signed-off-by: Keno Fischer <keno at juliacomputing.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
loader/preloader.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/loader/preloader.c b/loader/preloader.c
index db0e998..7cf2946 100644
--- a/loader/preloader.c
+++ b/loader/preloader.c
@@ -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 */
More information about the wine-cvs
mailing list