From 5775911dadef7c10eee8ee44db41c6aeb6b11e07 Mon Sep 17 00:00:00 2001 From: Andrew Mulbrook Date: Sat, 3 Mar 2012 10:12:06 -0600 Subject: Revert "Multiple fixes for 64 bit sections" This reverts commit d7a7c3769d0a1dcb8400258cd8adf78a8566de61. --- tccrun.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 2ea3c49..de0ef89 100644 --- a/tccrun.c +++ b/tccrun.c @@ -36,11 +36,10 @@ static int rt_get_caller_pc(uplong *paddr, ucontext_t *uc, int level); static void rt_error(ucontext_t *uc, const char *fmt, ...); static int tcc_relocate_ex(TCCState *s1, void *ptr); -#if defined TCC_TARGET_X86_64 && defined TCC_TARGET_PE +#ifdef _WIN64 static void win64_add_function_table(TCCState *s1); #endif - /* ------------------------------------------------------------- */ /* Do all relocations (needed before using tcc_get_symbol()) Returns -1 on error. */ @@ -194,7 +193,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr) s1->runtime_plt_and_got_offset); #endif -#if defined TCC_TARGET_X86_64 && defined TCC_TARGET_PE +#ifdef _WIN64 win64_add_function_table(s1); #endif return 0; @@ -622,8 +621,7 @@ static void set_exception_handler(void) SetUnhandledExceptionFilter(cpu_exception_handler); } -#ifdef TCC_TARGET_PE -#ifdef TCC_TARGET_X86_64 +#ifdef _WIN64 static void win64_add_function_table(TCCState *s1) { RtlAddFunctionTable( @@ -633,7 +631,6 @@ static void win64_add_function_table(TCCState *s1) ); } #endif -#endif /* return the PC at frame level 'level'. Return non zero if not found */ static int rt_get_caller_pc(uplong *paddr, CONTEXT *uc, int level) -- cgit v1.3.1