diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-03 13:17:51 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-03 13:17:51 +0200 |
| commit | 9d92aac4f5353a23b27795b6894d69e892d9713a (patch) | |
| tree | 882e866b132cdfc860c8156591df323678374320 /src/core.c | |
| parent | 5923a9089fc29023cd26ba5303165bf65fa43201 (diff) | |
| download | box64-9d92aac4f5353a23b27795b6894d69e892d9713a.tar.gz box64-9d92aac4f5353a23b27795b6894d69e892d9713a.zip | |
[BOX32] Do not try to switch personality on RV64 or LA64 arch
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c index 3ccbb85e..e8b14024 100644 --- a/src/core.c +++ b/src/core.c @@ -1152,6 +1152,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf } #ifdef BOX32 box64_is32bits = FileIsX86ELF(my_context->fullpath); + #if !defined(RV64) && !defined(LA64) // try to switch personality, but only if not already tried if(box64_is32bits) { int tried = getenv("BOX32_PERSONA32BITS")?1:0; @@ -1175,6 +1176,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf } } } + #endif if(box64_is32bits) { printf_log(LOG_INFO, "Using Box32 to load 32bits elf\n"); loadProtectionFromMap(); |