Enable emitting custom name section to aot file (#794)
Enable emitting custom name section to aot file when adding `--enable-dump-call-stack` or `--enable-dump-call-stack` to wamrc and there is custom name section in wasm file, which can be generated by wasi-sdk/emcc "-g" option. So aot runtime can also get the function name from the custom name section instead of export section, to which developer should use `--export-all` for wasi-sdk/emcc to generate export function names.
This commit is contained in:
@ -224,7 +224,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
|
||||
/* S + A */
|
||||
X = (int64)S + A;
|
||||
|
||||
/* No need to check overflow for this reloction type */
|
||||
/* No need to check overflow for this relocation type */
|
||||
switch (reloc_type) {
|
||||
case R_AARCH64_MOVW_UABS_G0:
|
||||
if (X < 0 || X >= (1LL << 16))
|
||||
@ -324,7 +324,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
|
||||
/* S + A */
|
||||
X = (int64)S + A;
|
||||
|
||||
/* No need to check overflow for this reloction type */
|
||||
/* No need to check overflow for this relocation type */
|
||||
|
||||
/* write the imm12 back to instruction */
|
||||
*(int32 *)P = (insn & 0xFFC003FF) | ((int32)((X & 0xFFF) << 10));
|
||||
@ -354,7 +354,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
|
||||
/* S + A */
|
||||
X = (int64)S + A;
|
||||
|
||||
/* No need to check overflow for this reloction type */
|
||||
/* No need to check overflow for this relocation type */
|
||||
|
||||
/* write the imm12 back to instruction */
|
||||
switch (reloc_type) {
|
||||
|
||||
Reference in New Issue
Block a user