@@ -163,7 +163,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
163163 error_buf , error_buf_size ,
164164 "AOT module load failed: "
165165 "relocation truncated to fit R_X86_64_PC32 failed. "
166- "Try using wamrc with --size-level=1 option." );
166+ "Try using wamrc with --size-level=1 or 0 option." );
167167 return false;
168168 }
169169
@@ -196,7 +196,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
196196 snprintf (buf , sizeof (buf ),
197197 "AOT module load failed: "
198198 "relocation truncated to fit %s failed. "
199- "Try using wamrc with --size-level=1 option." ,
199+ "Try using wamrc with --size-level=1 or 0 option." ,
200200 reloc_type == R_X86_64_32 ? "R_X86_64_32"
201201 : "R_X86_64_32S" );
202202 set_error_buf (error_buf , error_buf_size , buf );
@@ -236,15 +236,16 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr,
236236 target_addr -= sizeof (int32 );
237237#endif
238238 if ((int32 )target_addr != target_addr ) {
239- set_error_buf (error_buf , error_buf_size ,
240- "AOT module load failed: "
241- "relocation truncated to fit "
239+ set_error_buf (
240+ error_buf , error_buf_size ,
241+ "AOT module load failed: "
242+ "relocation truncated to fit "
242243#if !defined (BH_PLATFORM_WINDOWS )
243- "R_X86_64_PLT32 failed. "
244+ "R_X86_64_PLT32 failed. "
244245#else
245- "IMAGE_REL_AMD64_32 failed."
246+ "IMAGE_REL_AMD64_32 failed."
246247#endif
247- "Try using wamrc with --size-level=1 option." );
248+ "Try using wamrc with --size-level=1 or 0 option." );
248249 return false;
249250 }
250251 * (int32 * )(target_section_addr + reloc_offset ) = (int32 )target_addr ;
0 commit comments