mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-01-15 22:06:40 +00:00
aot: avoid forcing mmap low addresses on NuttX
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
2a2dd19f32
commit
c00df59dd8
|
|
@ -307,7 +307,8 @@ loader_mmap(uint32 size, bool prot_exec, char *error_buf, uint32 error_buf_size)
|
|||
#if defined(BUILD_TARGET_X86_64) || defined(BUILD_TARGET_AMD_64) \
|
||||
|| defined(BUILD_TARGET_RISCV64_LP64D) \
|
||||
|| defined(BUILD_TARGET_RISCV64_LP64)
|
||||
#if !defined(__APPLE__) && !defined(BH_PLATFORM_LINUX_SGX)
|
||||
#if !defined(__APPLE__) && !defined(BH_PLATFORM_LINUX_SGX) \
|
||||
&& !defined(BH_PLATFORM_NUTTX)
|
||||
/* The mmapped AOT data and code in 64-bit targets had better be in
|
||||
range 0 to 2G, or aot loader may fail to apply some relocations,
|
||||
e.g., R_X86_64_32/R_X86_64_32S/R_X86_64_PC32/R_RISCV_32.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user