Unified · Split
| @@ -247,10 +247,6 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr, addr_t ptr_diff) · 246 unmodified lines | ||
| 247 | 247 | } |
| 248 | 248 | relocate_plt(s1); |
| 249 | 249 | |
| 250 | −#ifdef _WIN64 | |
| 251 | − *(void**)ptr = win64_add_function_table(s1); | |
| 252 | −#endif | |
| 253 | − | |
| 254 | 250 | for(i = 1; i < s1->nb_sections; i++) { |
| 255 | 251 | s = s1->sections[i]; |
| 256 | 252 | if (0 == (s->sh_flags & SHF_ALLOC)) |
| @@ -267,6 +263,11 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr, addr_t ptr_diff) · 10 unmodified lines | ||
| 267 | 263 | if (s->sh_flags & SHF_EXECINSTR) |
| 268 | 264 | set_pages_executable((char*)ptr + ptr_diff, length); |
| 269 | 265 | } |
| 266 | + | |
| 267 | +#ifdef _WIN64 | |
| 268 | + *(void**)mem = win64_add_function_table(s1); | |
| 269 | +#endif | |
| 270 | + | |
| 270 | 271 | return 0; |
| 271 | 272 | } |
| 272 | 273 | |