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; } }