Skip to content

Commit e1ea15d

Browse files
authored
aot_resolve_stack_sizes: Disable the size check for now (#2608)
cf. #2555 (comment) llvm/llvm-project#67765
1 parent 0053962 commit e1ea15d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,6 +2703,7 @@ aot_resolve_stack_sizes(AOTCompContext *comp_ctx, AOTObjectData *obj_data)
27032703
|| (obj_data->target_info.bin_type == AOT_COFF32_BIN_TYPE
27042704
&& !strncmp(name, "_", 1)
27052705
&& !strcmp(name + 1, aot_stack_sizes_alias_name)))) {
2706+
#if 0 /* cf. https://github.com/llvm/llvm-project/issues/67765 */
27062707
uint64 sz = LLVMGetSymbolSize(sym_itr);
27072708
if (sz != sizeof(uint32) * obj_data->func_count
27082709
/* sz of COFF64/COFF32 is 0, ignore the check */
@@ -2711,6 +2712,7 @@ aot_resolve_stack_sizes(AOTCompContext *comp_ctx, AOTObjectData *obj_data)
27112712
aot_set_last_error("stack_sizes had unexpected size.");
27122713
goto fail;
27132714
}
2715+
#endif
27142716
uint64 addr = LLVMGetSymbolAddress(sym_itr);
27152717
if (!(sec_itr =
27162718
LLVMObjectFileCopySectionIterator(obj_data->binary))) {

0 commit comments

Comments
 (0)