9115 |
if (tcc_relocate(s1) < 0) |
if (tcc_relocate(s1) < 0) |
9116 |
return -1; |
return -1; |
9117 |
|
|
9118 |
prog_main = tcc_get_symbol(s1, "main"); |
prog_main = tcc_get_symbol_err(s1, "main"); |
9119 |
|
|
9120 |
if (do_debug) { |
if (do_debug) { |
9121 |
#ifdef WIN32 |
#ifdef WIN32 |
9140 |
void (*bound_init)(void); |
void (*bound_init)(void); |
9141 |
|
|
9142 |
/* set error function */ |
/* set error function */ |
9143 |
rt_bound_error_msg = (void *)tcc_get_symbol(s1, "__bound_error_msg"); |
rt_bound_error_msg = (void *)tcc_get_symbol_err(s1, |
9144 |
|
"__bound_error_msg"); |
9145 |
|
|
9146 |
/* XXX: use .init section so that it also work in binary ? */ |
/* XXX: use .init section so that it also work in binary ? */ |
9147 |
bound_init = (void *)tcc_get_symbol(s1, "__bound_init"); |
bound_init = (void *)tcc_get_symbol_err(s1, "__bound_init"); |
9148 |
bound_init(); |
bound_init(); |
9149 |
} |
} |
9150 |
#endif |
#endif |