move wamr mmap memory region into .text segment for wamr aot mode

This commit is contained in:
2026-04-17 00:25:22 +02:00
parent 3563a810a1
commit 18c3f13a71
3 changed files with 13 additions and 4 deletions

View File

@ -18,7 +18,6 @@ SECTIONS {
/* Code and readonly data */
.text : {
/* fill gaps with int3 opcode to detect invalid jumps */
/* TODO: Crashes */
FILL(0xcc)
/* multiboot header */
@ -51,7 +50,9 @@ SECTIONS {
}
/* Data and Stacks */
. = 0x200000;
/* NOTE: When including the WAMR mmap region inside .text, it has to be large */
/* . = 0x200000; */
. = ALIGN(4096);
.data : {
KEEP (*(".startup_stack"))
KEEP (*(".kernel_stack"))