From df4c0892f3fb5170042652cd648a29c94c3a2eca Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Jul 2011 19:09:49 +0200 Subject: tccrun: win64: add unwind function table for dynamic code This works only when tcc.exe is compiled using MSC. MinGW does something in the startup code that defeats it. --- tcc.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index eaf0e65..e1b27f2 100644 --- a/tcc.h +++ b/tcc.h @@ -566,10 +566,11 @@ struct TCCState { int pe_subsystem; unsigned long pe_file_align; unsigned long pe_stack_size; - struct pe_uw { - Section *pdata; - int sym_1, sym_2, offs_1; - } pe_unwind; +#ifdef TCC_TARGET_X86_64 + Section *uw_pdata; + int uw_sym; + unsigned uw_offs; +#endif #endif #ifndef TCC_TARGET_PE -- cgit v1.3.1