link mmap space to .text.wamr_mmap instead of .text.wamr_aot

This commit is contained in:
2026-05-17 21:12:38 +02:00
parent 177fe78618
commit f618cfffaf

View File

@ -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_aot"), 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