Skip to content

Commit e3074dc

Browse files
authored
Add more arm AOT reloc entries (bytecodealliance#3587)
Add missing reloc entries for Arm AOT. Also sort and remove duplicate.
1 parent f118492 commit e3074dc

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

core/iwasm/aot/arch/aot_reloc_arm.c

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,48 @@
1414
/* clang-format off */
1515
void __adddf3();
1616
void __addsf3();
17+
void __aeabi_d2f();
1718
void __aeabi_d2iz();
1819
void __aeabi_d2lz();
20+
void __aeabi_d2uiz();
1921
void __aeabi_d2ulz();
2022
void __aeabi_dadd();
23+
void __aeabi_dcmpeq();
2124
void __aeabi_dcmpge();
25+
void __aeabi_dcmpgt();
2226
void __aeabi_dcmple();
2327
void __aeabi_dcmplt();
2428
void __aeabi_dcmpun();
2529
void __aeabi_ddiv();
30+
void __aeabi_dmul();
31+
void __aeabi_dsub();
2632
void __aeabi_f2d();
2733
void __aeabi_f2iz();
2834
void __aeabi_f2lz();
2935
void __aeabi_f2ulz();
36+
void __aeabi_fadd();
37+
void __aeabi_fcmpeq();
3038
void __aeabi_fcmpge();
39+
void __aeabi_fcmpgt();
3140
void __aeabi_fcmple();
3241
void __aeabi_fcmplt();
3342
void __aeabi_fcmpun();
43+
void __aeabi_fdiv();
44+
void __aeabi_fmul();
45+
void __aeabi_fsub();
3446
void __aeabi_i2d();
47+
void __aeabi_i2f();
3548
void __aeabi_idiv();
3649
void __aeabi_idivmod();
3750
void __aeabi_l2d();
3851
void __aeabi_l2f();
3952
void __aeabi_ldivmod();
53+
void __aeabi_memclr();
4054
void __aeabi_memcpy();
4155
void __aeabi_memmove();
4256
void __aeabi_memset();
43-
void __aeabi_memclr();
57+
void __aeabi_ui2d();
58+
void __aeabi_ui2f();
4459
void __aeabi_uidiv();
4560
void __aeabi_uidivmod();
4661
void __aeabi_ul2d();
@@ -101,33 +116,48 @@ static SymbolMap target_sym_map[] = {
101116
REG_SYM(__adddf3),
102117
REG_SYM(__addsf3),
103118
/* clang-format on */
119+
REG_SYM(__aeabi_d2f),
104120
REG_SYM(__aeabi_d2iz),
105121
REG_SYM(__aeabi_d2lz),
122+
REG_SYM(__aeabi_d2uiz),
106123
REG_SYM(__aeabi_d2ulz),
107124
REG_SYM(__aeabi_dadd),
125+
REG_SYM(__aeabi_dcmpeq),
108126
REG_SYM(__aeabi_dcmpge),
127+
REG_SYM(__aeabi_dcmpgt),
109128
REG_SYM(__aeabi_dcmple),
110129
REG_SYM(__aeabi_dcmplt),
111130
REG_SYM(__aeabi_dcmpun),
112131
REG_SYM(__aeabi_ddiv),
132+
REG_SYM(__aeabi_dmul),
133+
REG_SYM(__aeabi_dsub),
113134
REG_SYM(__aeabi_f2d),
114135
REG_SYM(__aeabi_f2iz),
115136
REG_SYM(__aeabi_f2lz),
116137
REG_SYM(__aeabi_f2ulz),
138+
REG_SYM(__aeabi_fadd),
139+
REG_SYM(__aeabi_fcmpeq),
117140
REG_SYM(__aeabi_fcmpge),
141+
REG_SYM(__aeabi_fcmpgt),
118142
REG_SYM(__aeabi_fcmple),
119143
REG_SYM(__aeabi_fcmplt),
120144
REG_SYM(__aeabi_fcmpun),
145+
REG_SYM(__aeabi_fdiv),
146+
REG_SYM(__aeabi_fmul),
147+
REG_SYM(__aeabi_fsub),
121148
REG_SYM(__aeabi_i2d),
149+
REG_SYM(__aeabi_i2f),
122150
REG_SYM(__aeabi_idiv),
123151
REG_SYM(__aeabi_idivmod),
124152
REG_SYM(__aeabi_l2d),
125153
REG_SYM(__aeabi_l2f),
126154
REG_SYM(__aeabi_ldivmod),
155+
REG_SYM(__aeabi_memclr),
127156
REG_SYM(__aeabi_memcpy),
128157
REG_SYM(__aeabi_memmove),
129158
REG_SYM(__aeabi_memset),
130-
REG_SYM(__aeabi_memclr),
159+
REG_SYM(__aeabi_ui2d),
160+
REG_SYM(__aeabi_ui2f),
131161
REG_SYM(__aeabi_uidiv),
132162
REG_SYM(__aeabi_uidivmod),
133163
REG_SYM(__aeabi_ul2d),
@@ -166,7 +196,6 @@ static SymbolMap target_sym_map[] = {
166196
REG_SYM(__moddi3),
167197
REG_SYM(__modsi3),
168198
REG_SYM(__muldf3),
169-
REG_SYM(__muldf3),
170199
REG_SYM(__mulsf3),
171200
REG_SYM(__nedf2),
172201
REG_SYM(__nesf2),

0 commit comments

Comments
 (0)