gate .text.wamr_mmap behind WAMR_MMAP_IN_TEXT
This commit is contained in:
@ -45,7 +45,9 @@ os_dumps_proc_mem_info(char *out, unsigned int size)
|
||||
// #12 0x08048112 in main
|
||||
|
||||
// To place mmap memory inside the .text segment:
|
||||
#if WAMR_MMAP_IN_TEXT
|
||||
__attribute__((section(".text.wamr_mmap"), aligned(4096)))
|
||||
#endif
|
||||
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