Skip to content

Commit c3b444c

Browse files
committed
Remove native_symbol_count from AOTModule
1 parent 3bb37ff commit c3b444c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,6 @@ load_native_symbol_section(const uint8 *buf, const uint8 *buf_end,
477477

478478
read_uint32(p, p_end, cnt);
479479

480-
module->native_symbol_count = cnt;
481-
482480
if (cnt > 0) {
483481
module->native_symbol_list = wasm_runtime_malloc(cnt * sizeof(void *));
484482
if (module->native_symbol_list == NULL) {
@@ -1468,7 +1466,7 @@ load_text_section(const uint8 *buf, const uint8 *buf_end, AOTModule *module,
14681466
}
14691467
#endif
14701468

1471-
if ((module->code_size > 0) && (module->native_symbol_count == 0)) {
1469+
if ((module->code_size > 0) && !module->is_indirect_mode) {
14721470
plt_base = (uint8 *)buf_end - get_plt_table_size();
14731471
init_plt_table(plt_base);
14741472
}

core/iwasm/aot/aot_runtime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ typedef struct AOTModule {
135135
AOTMemInitData **mem_init_data_list;
136136

137137
/* native symbol */
138-
uint32 native_symbol_count;
139138
void **native_symbol_list;
140139

141140
/* import tables */

0 commit comments

Comments
 (0)