Revert "Multiple fixes for 64 bit sections"

This reverts commit d7a7c3769d.
This commit is contained in:
Andrew Mulbrook
2012-03-03 10:12:06 -06:00
parent e343b1dfd4
commit 5775911dad
6 changed files with 24 additions and 41 deletions

View File

@ -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)