Allow configuring which memory for pool/usage allocators is placed where
This commit is contained in:
@ -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*")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user