fix linker.ld - wamr subsections have to be declared before the .text* wildcard

This commit is contained in:
2026-05-20 21:31:31 +02:00
parent 8f5e6f35b4
commit 7846a2f3b6

View File

@ -45,12 +45,21 @@ SECTIONS {
/* . += 16; /\* padding after data, workaround for import-trace *\/ */
KEEP (*(".text.startup"))
. = ALIGN(4096);
_wamr_aot_start = .;
*(".text.wamr_aot")
*(".text*")
_wamr_aot_end = .;
. = ALIGN(4096);
_wamr_mmap_start = .;
*(".text.wamr_mmap")
_wamr_mmap_end = .;
/* .wamr_aot and .wamr_mmap have to be placed before .text,
* otherwise they'll be caught by the wildcard */
*(".text*")
*(".rodata*")
}