aot: Move stack_sizes table to a dedicated section (#2317)

To solve the "AOT module load failed: resolve symbol stack_sizes failed" issue.

This PR partly fixes #2312 and was lightly tested on qemu armhf.
This commit is contained in:
YAMAMOTO Takashi
2023-06-27 17:18:14 +09:00
committed by GitHub
parent ea78b89965
commit 5831531449
4 changed files with 33 additions and 5 deletions

View File

@ -28,6 +28,16 @@ extern "C" {
#endif
extern const char *aot_stack_sizes_name;
#ifndef AOT_STACK_SIZES_ALIAS_NAME
#define AOT_STACK_SIZES_ALIAS_NAME "aot_stack_sizes_alias"
#endif
extern const char *aot_stack_sizes_alias_name;
#ifndef AOT_STACK_SIZES_SECTION_NAME
#define AOT_STACK_SIZES_SECTION_NAME ".aot_stack_sizes"
#endif
extern const char *aot_stack_sizes_section_name;
typedef InitializerExpression AOTInitExpr;
typedef WASMType AOTFuncType;
typedef WASMExport AOTExport;