From 6db56f597d1fd52f8f5439504c3de0a4e4e2bf37 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Thu, 28 Aug 2025 22:53:40 -0400 Subject: [PATCH] Fix bug with patch recompilation when a non-relocatable reference section has the same index as the patch elf's event section --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 65ed8f8..9b33ef7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -646,6 +646,11 @@ int main(int argc, char** argv) { continue; } + // Ignore R_MIPS_NONE relocs, which get produced during symbol parsing for non-relocatable reference sections. + if (reloc.type == N64Recomp::RelocType::R_MIPS_NONE) { + continue; + } + // Check if the reloc points to the event section. if (reloc.target_section == event_section_index) { // It does, so find the function it's pointing at.