mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	aot_reloc_x86_64.c: Suggest to try --size-level=0 as well (#3067)
cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3035
This commit is contained in:
		
							parent
							
								
									c8b59588a7
								
							
						
					
					
						commit
						b44aa654b8
					
				|  | @ -163,7 +163,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr, | |||
|                     error_buf, error_buf_size, | ||||
|                     "AOT module load failed: " | ||||
|                     "relocation truncated to fit R_X86_64_PC32 failed. " | ||||
|                     "Try using wamrc with --size-level=1 option."); | ||||
|                     "Try using wamrc with --size-level=1 or 0 option."); | ||||
|                 return false; | ||||
|             } | ||||
| 
 | ||||
|  | @ -196,7 +196,7 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr, | |||
|                 snprintf(buf, sizeof(buf), | ||||
|                          "AOT module load failed: " | ||||
|                          "relocation truncated to fit %s failed. " | ||||
|                          "Try using wamrc with --size-level=1 option.", | ||||
|                          "Try using wamrc with --size-level=1 or 0 option.", | ||||
|                          reloc_type == R_X86_64_32 ? "R_X86_64_32" | ||||
|                                                    : "R_X86_64_32S"); | ||||
|                 set_error_buf(error_buf, error_buf_size, buf); | ||||
|  | @ -236,15 +236,16 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr, | |||
|             target_addr -= sizeof(int32); | ||||
| #endif | ||||
|             if ((int32)target_addr != target_addr) { | ||||
|                 set_error_buf(error_buf, error_buf_size, | ||||
|                               "AOT module load failed: " | ||||
|                               "relocation truncated to fit " | ||||
|                 set_error_buf( | ||||
|                     error_buf, error_buf_size, | ||||
|                     "AOT module load failed: " | ||||
|                     "relocation truncated to fit " | ||||
| #if !defined(BH_PLATFORM_WINDOWS) | ||||
|                               "R_X86_64_PLT32 failed. " | ||||
|                     "R_X86_64_PLT32 failed. " | ||||
| #else | ||||
|                               "IMAGE_REL_AMD64_32 failed." | ||||
|                     "IMAGE_REL_AMD64_32 failed." | ||||
| #endif | ||||
|                               "Try using wamrc with --size-level=1 option."); | ||||
|                     "Try using wamrc with --size-level=1 or 0 option."); | ||||
|                 return false; | ||||
|             } | ||||
|             *(int32 *)(target_section_addr + reloc_offset) = (int32)target_addr; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 YAMAMOTO Takashi
						YAMAMOTO Takashi