diff --git a/amxmodx/JIT/amxjitsn.obj b/amxmodx/JIT/amxjitsn.obj index c4855cc1..293bad6e 100755 Binary files a/amxmodx/JIT/amxjitsn.obj and b/amxmodx/JIT/amxjitsn.obj differ diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index 391452cc..359388f3 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -994,7 +994,7 @@ int AMXAPI amx_Init(AMX *amx,void *program) #if defined JIT - #define CODESIZE_JIT 8192 /* approximate size of the code for the JIT */ + #define CODESIZE_JIT 65536 /* approximate size of the code for the JIT */ #if defined __WIN32__ /* this also applies to Win32 "console" applications */ diff --git a/amxmodx/amxjitsn.asm b/amxmodx/amxjitsn.asm index a8a01206..47e3b46e 100755 --- a/amxmodx/amxjitsn.asm +++ b/amxmodx/amxjitsn.asm @@ -304,7 +304,11 @@ %endmacro +%ifdef WIN32 +section .data exec +%else section .text +%endif global asm_runJIT, _asm_runJIT @@ -437,7 +441,9 @@ reloc_done: ; in the compiled code. This is fine, but the .text section in an ELF executable ; is usually marked read-only, that's why this code is in the .data section. +%ifndef WIN32 section .data exec +%endif OP_LOAD_PRI: ;nop;