mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 14:58:06 +03:00
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
|
#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 */
|
#if defined __WIN32__ /* this also applies to Win32 "console" applications */
|
||||||
|
|
||||||
|
@ -304,7 +304,11 @@
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
|
%ifdef WIN32
|
||||||
|
section .data exec
|
||||||
|
%else
|
||||||
section .text
|
section .text
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
global asm_runJIT, _asm_runJIT
|
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
|
; 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.
|
; is usually marked read-only, that's why this code is in the .data section.
|
||||||
|
|
||||||
|
%ifndef WIN32
|
||||||
section .data exec
|
section .data exec
|
||||||
|
%endif
|
||||||
|
|
||||||
OP_LOAD_PRI:
|
OP_LOAD_PRI:
|
||||||
;nop;
|
;nop;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user