rec-cpp: SH4_TCB doesn't need to be in .text if not executable

This commit is contained in:
~skmp 2015-07-28 19:10:31 +03:00 committed by Stefanos Kornilios Mitsis Poiitidis
parent 1e0224dd1b
commit 5b67e3f090
1 changed files with 5 additions and 4 deletions

View File

@ -28,12 +28,13 @@
#if FEAT_SHREC != DYNAREC_NONE
//uh uh
#if HOST_OS == OS_WINDOWS
u8 SH4_TCB[2*CODE_SIZE+4096];
u8 SH4_TCB[2*CODE_SIZE+4096]
#if HOST_OS == OS_WINDOWS || FEAT_SHREC != DYNAREC_JIT
;
#elif HOST_OS == OS_LINUX
u8 SH4_TCB[2*CODE_SIZE+4096] __attribute__((section(".text")));
__attribute__((section(".text")));
#elif HOST_OS==OS_DARWIN
u8 SH4_TCB[2*CODE_SIZE+4096] __attribute__((section("__TEXT,.text")));
__attribute__((section("__TEXT,.text")));
#else
#error SH4_TCB ALLOC
#endif