mirror of
				https://github.com/N64Recomp/N64Recomp.git
				synced 2025-10-30 08:02:11 +00:00 
			
		
		
		
	Fix out of bounds exception in recompilation with special sections in function call relocs
This commit is contained in:
		
							parent
							
								
									c1a6dc93bf
								
							
						
					
					
						commit
						facc807049
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -297,7 +297,8 @@ bool process_instruction(GeneratorType& generator, const N64Recomp::Context& con | |||
|             } | ||||
|             else { | ||||
|                 uint32_t target_section = func.section_index; | ||||
|                 if (has_reloc) { | ||||
|                 // If this instruction has a reloc and the target section is a normal section, use the section of the reloc when searching for a matching target function. 
 | ||||
|                 if (has_reloc && reloc_section < 65500) { | ||||
|                     target_section = reloc_section; | ||||
|                 } | ||||
|                 JalResolutionResult jal_result = resolve_jal(context, target_section, target_func_vram, matched_func_index); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Mr-Wiseguy
						Mr-Wiseguy