Skip to content

Commit cc942e8

Browse files
Add missing aot relocation symbols for xtensa target (#1235)
Some symbols are missing when loading the xtensa aot file.
1 parent 4b38205 commit cc942e8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

core/iwasm/aot/arch/aot_reloc_xtensa.c

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ void __modsi3();
2222

2323
void __divdi3();
2424

25+
void __udivdi3();
26+
void __unorddf2();
27+
void __adddf3();
28+
void __eqdf2();
29+
void __muldf3();
30+
void __gedf2();
31+
void __ledf2();
32+
void __fixunsdfsi();
33+
void __floatunsidf();
34+
void __subdf3();
35+
void __nedf2();
36+
void __fixdfsi();
37+
void __moddi3();
38+
void __extendsfdf2();
39+
void __truncdfsf2();
40+
void __gtdf2();
41+
void __umoddi3();
42+
void __floatdidf();
43+
void __divsf3();
44+
2545
static SymbolMap target_sym_map[] = {
2646
REG_COMMON_SYMBOLS
2747

@@ -40,6 +60,28 @@ static SymbolMap target_sym_map[] = {
4060

4161
REG_SYM(__modsi3),
4262
REG_SYM(__divdi3),
63+
64+
REG_SYM(__udivdi3),
65+
REG_SYM(__unorddf2),
66+
REG_SYM(__adddf3),
67+
REG_SYM(__eqdf2),
68+
REG_SYM(__muldf3),
69+
REG_SYM(__gedf2),
70+
REG_SYM(__ledf2),
71+
REG_SYM(__fixunsdfsi),
72+
REG_SYM(__floatunsidf),
73+
REG_SYM(__subdf3),
74+
REG_SYM(__nedf2),
75+
REG_SYM(__fixdfsi),
76+
REG_SYM(__moddi3),
77+
REG_SYM(__extendsfdf2),
78+
REG_SYM(__truncdfsf2),
79+
REG_SYM(__gtdf2),
80+
REG_SYM(__umoddi3),
81+
REG_SYM(__floatdidf),
82+
REG_SYM(__divsf3),
83+
REG_SYM(sqrt),
84+
REG_SYM(sqrtf),
4385
};
4486
/* clang-format on */
4587

0 commit comments

Comments
 (0)