Allow configuring which memory for pool/usage allocators is placed where

This commit is contained in:
2026-06-05 20:15:19 +02:00
parent b6355a67f3
commit a07cd4913c
4 changed files with 208 additions and 81 deletions

View File

@ -46,20 +46,31 @@ SECTIONS {
KEEP (*(".text.startup"))
/* .wamr_aot and .wamr_mmap have to be placed before .text,
* otherwise they'll be caught by the wildcard */
/* place before .text, otherwise they'll be caught by the wildcard */
/* _wamr_aot_start = .; */
_wamr_aot_start = .;
*(".text.wamr_aot")
/* _wamr_aot_end = .; */
_wamr_aot_end = .;
/* _wamr_mmap_start = .; */
_wamr_mmap_start = .;
*(".text.wamr_mmap")
/* _wamr_mmap_end = .; */
_wamr_mmap_end = .;
/* _text_start = .; */
_wamr_runtime_pool_start = .;
*(".text.wamr_runtime_pool")
_wamr_runtime_pool_end = .;
_wamr_linear_pool_start = .;
*(".text.wamr_linear_pool")
_wamr_linear_pool_end = .;
_wamr_global_heap_start = .;
*(".text.wamr_global_heap")
_wamr_global_heap_end = .;
_text_start = .;
*(".text*")
/* _text_end = .; */
_text_end = .;
*(".rodata*")
}