From 8af4e177f3c6f0e8df35cfebb7221665012250e1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 21 Aug 2019 10:48:25 +0200 Subject: [PATCH] winecrt0: Add .seh annotations for x86_64. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on a patch by RĂ©mi Bernon. Signed-off-by: Alexandre Julliard --- dlls/winecrt0/exception.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winecrt0/exception.c b/dlls/winecrt0/exception.c index df7315e6d40..3a0ecfef687 100644 --- a/dlls/winecrt0/exception.c +++ b/dlls/winecrt0/exception.c @@ -117,11 +117,15 @@ __ASM_GLOBAL_FUNC( __wine_longjmp, __ASM_GLOBAL_FUNC( __wine_rtl_unwind, "pushq %rbp\n\t" + __ASM_SEH(".seh_pushreg %rbp\n\t") __ASM_CFI(".cfi_adjust_cfa_offset 8\n\t") __ASM_CFI(".cfi_rel_offset %rbp,0\n\t") "movq %rsp,%rbp\n\t" + __ASM_SEH(".seh_setframe %rbp,0\n\t") __ASM_CFI(".cfi_def_cfa_register %rbp\n\t") "subq $0x20,%rsp\n\t" + __ASM_SEH(".seh_stackalloc 0x20\n\t") + __ASM_SEH(".seh_endprologue\n\t") "movq %r8,%r9\n\t" /* retval = final target */ "movq %rdx,%r8\n\t" /* record */ "leaq __wine_unwind_trampoline(%rip),%rdx\n\t" /* target = trampoline */