Fixed DEP bug
This commit is contained in:
parent
dcae78a389
commit
63b10cfaf5
Binary file not shown.
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user