Merge pull request #18 from shinyquagsire23/fix-fimport-elf2rpl

Fix issue with import handling where import section symbols were indexed incorrectly
This commit is contained in:
James 2016-07-25 01:14:50 +01:00 committed by GitHub
commit b2cf6c2ded

View File

@ -561,7 +561,7 @@ getSectionIndex(std::vector<OutputSection *> &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;
}
}