From db3fe907efbf65a59204101d1d75d12575c4dcde Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 28 May 2020 20:17:28 +0200 Subject: [PATCH] Change way of detecting relocations of imports --- source/module/ModuleDataFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/module/ModuleDataFactory.cpp b/source/module/ModuleDataFactory.cpp index acdb0c9..48df690 100644 --- a/source/module/ModuleDataFactory.cpp +++ b/source/module/ModuleDataFactory.cpp @@ -228,7 +228,7 @@ std::vector ModuleDataFactory::getImportRelocationData(elfio &re } uint32_t adjusted_sym_value = (uint32_t) sym_value; - if (adjusted_sym_value < 0xC0000000) { + if(infoMap.count(sym_section_index) == 0){ continue; } std::optional rplInfo = ImportRPLInformation::createImportRPLInformation(infoMap[sym_section_index]);