Alexandre Julliard : winecrt0: Add .seh annotations for x86_64.

Alexandre Julliard julliard at winehq.org
Wed Aug 21 14:39:32 CDT 2019


Module: wine
Branch: master
Commit: 8af4e177f3c6f0e8df35cfebb7221665012250e1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8af4e177f3c6f0e8df35cfebb7221665012250e1

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Aug 21 10:48:25 2019 +0200

winecrt0: Add .seh annotations for x86_64.

Based on a patch by RĂ©mi Bernon.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winecrt0/exception.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/winecrt0/exception.c b/dlls/winecrt0/exception.c
index df7315e..3a0ecfe 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 */




More information about the wine-cvs mailing list