don't link mmap region into .text but aot array itself

This commit is contained in:
2026-04-21 14:46:31 +02:00
parent ea56079c09
commit 264795bf71
6 changed files with 18 additions and 13 deletions

View File

@ -97,6 +97,9 @@ build-wasm-aot module target="fail":
build-wasm-aot-array module:
{{ XXD }} -i {{ BUILD_DIR }}-{{ module }}/wasm_module.aot > {{ BUILD_DIR }}-{{ module }}/wasm_aot_array.c
# Add __attribute__((section...)) to this array, so it is located into the .text.wamr_aot segment...
sed -i '1s/^/__attribute__((section(".text.wamr_aot"), aligned(4096)))\n/' {{ BUILD_DIR }}-{{ module }}/wasm_aot_array.c
[doc("WASM -> C-Array: Dump a WASM module to a binary array")]
[group("1: build module")]
build-wasm-interp-array module: