diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-14 17:29:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-14 11:29:22 +0200 |
| commit | ee530a73319423f7613304cf8c980fbabd89c5ae (patch) | |
| tree | b6efd6f08b0d39904a4e34b783e5ebe428099481 /src/os/os_linux.c | |
| parent | b7cb36d362861cf857a6958c13c2357657c1d967 (diff) | |
| download | box64-ee530a73319423f7613304cf8c980fbabd89c5ae.tar.gz box64-ee530a73319423f7613304cf8c980fbabd89c5ae.zip | |
[WOW64] More tweaks for PE build (#2528)
Diffstat (limited to 'src/os/os_linux.c')
| -rw-r--r-- | src/os/os_linux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/os_linux.c b/src/os/os_linux.c index daef3807..6d9db214 100644 --- a/src/os/os_linux.c +++ b/src/os/os_linux.c @@ -8,6 +8,8 @@ #include "signals.h" #include "emu/x64int_private.h" #include "bridge.h" +#include "elfloader.h" +#include "env.h" int GetTID(void) { @@ -54,6 +56,11 @@ void PersonalityAddrLimit32Bit(void) personality(ADDR_LIMIT_32BIT); } +int IsAddrElfOrFileMapped(uintptr_t addr) +{ + return FindElfAddress(my_context, addr) || IsAddrFileMapped(addr, NULL, NULL); +} + void* InternalMmap(void* addr, unsigned long length, int prot, int flags, int fd, ssize_t offset) { #if 1 // def STATICBUILD |