Refine codes and fix several issues (#1094)
Add aot relocation for ".rodata.str" symbol to support more cases Fix some coding style issues Fix aot block/value stack destroy issue Refine classic/fast interpreter codes Clear compile warning of libc_builtin_wrapper.c in 32-bit platform
This commit is contained in:
@ -2180,6 +2180,8 @@ is_data_section(LLVMSectionIteratorRef sec_itr, char *section_name)
|
||||
|| !strcmp(section_name, ".rodata")
|
||||
/* ".rodata.cst4/8/16/.." */
|
||||
|| !strncmp(section_name, ".rodata.cst", strlen(".rodata.cst"))
|
||||
/* ".rodata.strn.m" */
|
||||
|| !strncmp(section_name, ".rodata.str", strlen(".rodata.str"))
|
||||
|| (!strcmp(section_name, ".rdata")
|
||||
&& get_relocations_count(sec_itr, &relocation_count)
|
||||
&& relocation_count > 0));
|
||||
|
||||
@ -529,7 +529,6 @@ compile_int_div(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
|
||||
default:
|
||||
bh_assert(0);
|
||||
return false;
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2276,6 +2276,9 @@ aot_value_stack_destroy(AOTValueStack *stack)
|
||||
wasm_runtime_free(value);
|
||||
value = p;
|
||||
}
|
||||
|
||||
stack->value_list_head = NULL;
|
||||
stack->value_list_end = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
@ -2319,6 +2322,9 @@ aot_block_stack_destroy(AOTBlockStack *stack)
|
||||
aot_block_destroy(block);
|
||||
block = p;
|
||||
}
|
||||
|
||||
stack->block_list_head = NULL;
|
||||
stack->block_list_end = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user