don't link mmap region into .text but aot array itself
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user