make --xip and .wamr_mmap configurable from build menu
This commit is contained in:
13
patches/disable_wamr_mmap.patch
Normal file
13
patches/disable_wamr_mmap.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/core/shared/platform/baremetal/platform_init.c b/core/shared/platform/baremetal/platform_init.c
|
||||
index bbf7c102..f0fd43b7 100644
|
||||
--- a/core/shared/platform/baremetal/platform_init.c
|
||||
+++ b/core/shared/platform/baremetal/platform_init.c
|
||||
@@ -45,7 +45,7 @@ os_dumps_proc_mem_info(char *out, unsigned int size)
|
||||
// #12 0x08048112 in main
|
||||
|
||||
// To place mmap memory inside the .text segment:
|
||||
-__attribute__((section(".text.wamr_mmap"), aligned(4096)))
|
||||
+// __attribute__((section(".text.wamr_mmap"), aligned(4096)))
|
||||
static uint8_t mmap_space[MMAP_SPACE_SIZE];
|
||||
static size_t mmap_offset = 0; // Free space begins here
|
||||
|
||||
Reference in New Issue
Block a user