diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-05-05 13:49:06 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-05-05 13:49:06 +0200 |
| commit | 49dfbee2119ce52600f7acbf61af690d6c9ef16c (patch) | |
| tree | 5cc28c28631fe8ac7736eea8a95223a0814ebcae /src/elfs | |
| parent | 3fc3875e82402f788c85db9de16851570d69346f (diff) | |
| download | box64-49dfbee2119ce52600f7acbf61af690d6c9ef16c.tar.gz box64-49dfbee2119ce52600f7acbf61af690d6c9ef16c.zip | |
Improved handling of x86_64 47bits memory (should help #763)
Diffstat (limited to 'src/elfs')
| -rwxr-xr-x | src/elfs/elfloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 388372bf..310bb2f7 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -258,7 +258,7 @@ int AllocElfMemory(box64context_t* context, elfheader_t* head, int mainbin) } else { // vaddr is 0, load everything has a One block uintptr_t old_offs = offs; - if(!offs && box64_wine) + if(!offs /*&& box64_wine*/) offs = (uintptr_t)find47bitBlock(head->memsz); // limit to 47bits... printf_log(log_level, "Allocating 0x%zx memory @%p for Elf \"%s\"\n", head->memsz, (void*)offs, head->name); void* p = mmap((void*)offs, head->memsz |