From 50b040ef83252730d75463bdeea589294e698532 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:40:28 +0100 Subject: win64: add tiny unwind data for setjmp/longjmp This enables native unwind semantics with longjmp on win64 by putting an entry into the .pdata section for each compiled fuction. Also, the function now use a fixed stack and store arguments into X(%rsp) rather than using push. --- tccrun.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index e88f87e..52855a7 100644 --- a/tccrun.c +++ b/tccrun.c @@ -78,6 +78,13 @@ int tcc_run(TCCState *s1, int argc, char **argv) return ret; } #endif + +#ifdef TCC_TARGET_PE + { + unsigned char *p = tcc_get_symbol(s1, "tinyc_no_getbp"); + if (p) *p = 0; + } +#endif return (*prog_main)(argc, argv); } -- cgit v1.3.1