@@ -289,7 +289,8 @@ load_target_info_section(const uint8 *buf, const uint8 *buf_end,
289289 const uint8 * p = buf , * p_end = buf_end ;
290290 bool is_target_little_endian , is_target_64_bit ;
291291
292- read_uint32 (p , p_end , target_info .bin_type );
292+ read_uint16 (p , p_end , target_info .bin_type );
293+ read_uint16 (p , p_end , target_info .abi_type );
293294 read_uint16 (p , p_end , target_info .e_type );
294295 read_uint16 (p , p_end , target_info .e_machine );
295296 read_uint32 (p , p_end , target_info .e_version );
@@ -424,6 +425,7 @@ load_memory_info(const uint8 **p_buf, const uint8 *buf_end,
424425{
425426 const uint8 * buf = * p_buf ;
426427
428+ read_uint32 (buf , buf_end , module -> num_bytes_per_page );
427429 read_uint32 (buf , buf_end , module -> mem_init_page_count );
428430 read_uint32 (buf , buf_end , module -> mem_max_page_count );
429431 read_uint32 (buf , buf_end , module -> mem_init_data_count );
@@ -1001,6 +1003,11 @@ load_init_data_section(const uint8 *buf, const uint8 *buf_end,
10011003 return false;
10021004 }
10031005
1006+ read_uint32 (p , p_end , module -> llvm_aux_data_end );
1007+ read_uint32 (p , p_end , module -> llvm_aux_stack_bottom );
1008+ read_uint32 (p , p_end , module -> llvm_aux_stack_size );
1009+ read_uint32 (p , p_end , module -> llvm_aux_stack_global_index );
1010+
10041011 if (!load_object_data_sections_info (& p , p_end , module ,
10051012 error_buf , error_buf_size ))
10061013 return false;
@@ -2297,6 +2304,7 @@ aot_load_from_comp_data(AOTCompData *comp_data, AOTCompContext *comp_ctx,
22972304 memset (module , 0 , sizeof (AOTModule ));
22982305
22992306 module -> module_type = Wasm_Module_AoT ;
2307+ module -> num_bytes_per_page = comp_data -> num_bytes_per_page ;
23002308 module -> mem_init_page_count = comp_data -> mem_init_page_count ;
23012309 module -> mem_max_page_count = comp_data -> mem_max_page_count ;
23022310
@@ -2382,6 +2390,11 @@ aot_load_from_comp_data(AOTCompData *comp_data, AOTCompContext *comp_ctx,
23822390 module -> start_function = NULL ;
23832391 }
23842392
2393+ module -> llvm_aux_data_end = comp_data -> llvm_aux_data_end ;
2394+ module -> llvm_aux_stack_bottom = comp_data -> llvm_aux_stack_bottom ;
2395+ module -> llvm_aux_stack_size = comp_data -> llvm_aux_stack_size ;
2396+ module -> llvm_aux_stack_global_index = comp_data -> llvm_aux_stack_global_index ;
2397+
23852398 module -> code = NULL ;
23862399 module -> code_size = 0 ;
23872400
0 commit comments