tcc.h: define TCC_IS_NATIVE

- disable tccrun feature for non-native (cross-) compilers
- define uplong for target adress size
- fix using -Wl,-Ttext=... for Win64 (tccpe: ADDR3264 imagebase)
This commit is contained in:
grischka
2012-03-05 20:15:56 +01:00
parent a0db7162af
commit a35b3059bb
4 changed files with 34 additions and 20 deletions

View File

@ -20,6 +20,9 @@
#include "tcc.h"
/* only native compiler supports -run */
#ifdef TCC_IS_NATIVE
#ifdef CONFIG_TCC_BACKTRACE
ST_DATA int rt_num_callers = 6;
ST_DATA const char **rt_bound_error_msg;
@ -217,6 +220,8 @@ static void set_pages_executable(void *ptr, unsigned long length)
}
/* ------------------------------------------------------------- */
#endif /* TCC_IS_NATIVE */
#ifdef CONFIG_TCC_BACKTRACE
PUB_FUNC void tcc_set_num_callers(int n)