From 07245cf136137be77bf754e47020585d160db63e Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Sun, 24 Jul 2016 17:05:44 -0700 Subject: [PATCH] Fix issue with import handling where import section symbols were indexed incorrectly --- tools/elf2rpl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index fbf5e67..9791fec 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -561,7 +561,7 @@ getSectionIndex(std::vector &outSections, uint32_t address) auto start = section->header.addr; auto end = start + section->header.size; - if (address >= start && address <= end) { + if (address >= start && address < end) { return i; } }