@@ -1023,14 +1023,14 @@ bool COFFView::Init()
1023
1023
DefineDataVariable (m_imageBase + stringTableBase + e_offset, Type::ArrayType (Type::IntegerType (1 , true , " char" ), symbolName.length () + 1 ));
1024
1024
string symbolStringName = " __symbol_name(" + symbolName + " )" ;
1025
1025
DefineAutoSymbol (new Symbol (DataSymbol, symbolStringName, m_imageBase + stringTableBase + e_offset, NoBinding));
1026
- DEBUG_COFF (AddUserDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + stringTableBase + e_offset));
1026
+ DEBUG_COFF (AddDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + stringTableBase + e_offset));
1027
1027
}
1028
1028
1029
1029
if (e_sclass == IMAGE_SYM_CLASS_STATIC && e_value == 0 )
1030
1030
{
1031
1031
size_t sectionHeaderOffset = sectionHeadersOffset + (e_scnum - 1 ) * sizeof (COFFSectionHeader);
1032
1032
(void )sectionHeaderOffset;
1033
- DEBUG_COFF (AddUserDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + sectionHeaderOffset));
1033
+ DEBUG_COFF (AddDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + sectionHeaderOffset));
1034
1034
}
1035
1035
else if (e_sclass == IMAGE_SYM_CLASS_EXTERNAL && e_value == 0 && e_scnum == IMAGE_SYM_UNDEFINED)
1036
1036
{
@@ -1251,11 +1251,11 @@ bool COFFView::Init()
1251
1251
DEBUG_COFF (m_logger->LogDebug (" COFF: section %d reloc %d at: 0x%" PRIx32 " va: 0x%x, index: %d, type: 0x%hx, item at: 0x%x" ,
1252
1252
i, j, relocationOffset, virtualAddress, symbolTableIndex, relocType, itemAddress));
1253
1253
1254
- DEBUG_COFF (AddUserDataReference (m_imageBase + relocationOffset, m_imageBase + itemAddress));
1254
+ DEBUG_COFF (AddDataReference (m_imageBase + relocationOffset, m_imageBase + itemAddress));
1255
1255
1256
1256
uint64_t symbolOffset = symbolTableAdjustedOffset + symbolTableIndex * sizeofCOFFSymbol;
1257
1257
1258
- DEBUG_COFF (AddUserDataReference (m_imageBase + relocationOffset, m_imageBase + symbolOffset));
1258
+ DEBUG_COFF (AddDataReference (m_imageBase + relocationOffset, m_imageBase + symbolOffset));
1259
1259
1260
1260
const auto symbol = GetSymbolByAddress (m_imageBase + symbolOffset);
1261
1261
if (!symbol)
@@ -1280,7 +1280,7 @@ bool COFFView::Init()
1280
1280
coffSymbol.type = reader.Read16 ();
1281
1281
coffSymbol.storageClass = reader.Read8 ();
1282
1282
1283
- DEBUG_COFF (AddUserDataReference (m_imageBase + itemAddress, m_imageBase + symbolOffset));
1283
+ DEBUG_COFF (AddDataReference (m_imageBase + itemAddress, m_imageBase + symbolOffset));
1284
1284
DEBUG_COFF (m_logger->LogDebug (" COFF: CREATING RELOC SYMBOL REF from 0x%" PRIx64 " to 0x%" PRIx64 " for \" %s\" " , m_imageBase + itemAddress, m_imageBase + symbolOffset, symbolName.c_str ()));
1285
1285
1286
1286
DefineAutoSymbol (new Symbol (DataSymbol, " __reloc(" + symbolName + " )" , m_imageBase + relocationOffset));
@@ -1313,11 +1313,11 @@ bool COFFView::Init()
1313
1313
uint64_t relocTargetOffset = m_sections[reloc.sectionIndex ].virtualAddress + coffSymbol.value ;
1314
1314
1315
1315
DEBUG_COFF (m_logger->LogError (" COFF: CREATING RELOC (%d) REF from 0x%" PRIx64 " to 0x%" PRIx64 " for %s" , relocType, m_imageBase + itemAddress, m_imageBase + relocTargetOffset, symbolName.c_str ()));
1316
- DEBUG_COFF (AddUserDataReference (m_imageBase + itemAddress, m_imageBase + relocTargetOffset));
1316
+ DEBUG_COFF (AddDataReference (m_imageBase + itemAddress, m_imageBase + relocTargetOffset));
1317
1317
1318
1318
DefineRelocation (m_arch, reloc, m_imageBase + relocTargetOffset, m_imageBase + reloc.address );
1319
1319
1320
- DEBUG_COFF (AddUserDataReference (m_imageBase + relocTargetOffset, m_imageBase + itemAddress));
1320
+ DEBUG_COFF (AddDataReference (m_imageBase + relocTargetOffset, m_imageBase + itemAddress));
1321
1321
DEBUG_COFF (m_logger->LogError (" COFF: DEFINED RELOCATION for 0x%" PRIx64 " :0x%" PRIx64 " to 0x%" PRIx64 " reloc type %#04x" , reloc.base , reloc.address , m_imageBase + relocTargetOffset, reloc.nativeType ));
1322
1322
}
1323
1323
else if (coffSymbol.storageClass == IMAGE_SYM_CLASS_EXTERNAL)
0 commit comments