Change way of detecting relocations of imports

This commit is contained in:
Maschell 2020-05-28 20:17:28 +02:00
parent 51fc349237
commit db3fe907ef

View File

@ -228,7 +228,7 @@ std::vector<RelocationData> ModuleDataFactory::getImportRelocationData(elfio &re
} }
uint32_t adjusted_sym_value = (uint32_t) sym_value; uint32_t adjusted_sym_value = (uint32_t) sym_value;
if (adjusted_sym_value < 0xC0000000) { if(infoMap.count(sym_section_index) == 0){
continue; continue;
} }
std::optional<ImportRPLInformation> rplInfo = ImportRPLInformation::createImportRPLInformation(infoMap[sym_section_index]); std::optional<ImportRPLInformation> rplInfo = ImportRPLInformation::createImportRPLInformation(infoMap[sym_section_index]);