@@ -1023,14 +1023,14 @@ bool COFFView::Init()
10231023 DefineDataVariable (m_imageBase + stringTableBase + e_offset, Type::ArrayType (Type::IntegerType (1 , true , " char" ), symbolName.length () + 1 ));
10241024 string symbolStringName = " __symbol_name(" + symbolName + " )" ;
10251025 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));
10271027 }
10281028
10291029 if (e_sclass == IMAGE_SYM_CLASS_STATIC && e_value == 0 )
10301030 {
10311031 size_t sectionHeaderOffset = sectionHeadersOffset + (e_scnum - 1 ) * sizeof (COFFSectionHeader);
10321032 (void )sectionHeaderOffset;
1033- DEBUG_COFF (AddUserDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + sectionHeaderOffset));
1033+ DEBUG_COFF (AddDataReference (m_imageBase + symbolVirtualAddress, m_imageBase + sectionHeaderOffset));
10341034 }
10351035 else if (e_sclass == IMAGE_SYM_CLASS_EXTERNAL && e_value == 0 && e_scnum == IMAGE_SYM_UNDEFINED)
10361036 {
@@ -1251,11 +1251,11 @@ bool COFFView::Init()
12511251 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" ,
12521252 i, j, relocationOffset, virtualAddress, symbolTableIndex, relocType, itemAddress));
12531253
1254- DEBUG_COFF (AddUserDataReference (m_imageBase + relocationOffset, m_imageBase + itemAddress));
1254+ DEBUG_COFF (AddDataReference (m_imageBase + relocationOffset, m_imageBase + itemAddress));
12551255
12561256 uint64_t symbolOffset = symbolTableAdjustedOffset + symbolTableIndex * sizeofCOFFSymbol;
12571257
1258- DEBUG_COFF (AddUserDataReference (m_imageBase + relocationOffset, m_imageBase + symbolOffset));
1258+ DEBUG_COFF (AddDataReference (m_imageBase + relocationOffset, m_imageBase + symbolOffset));
12591259
12601260 const auto symbol = GetSymbolByAddress (m_imageBase + symbolOffset);
12611261 if (!symbol)
@@ -1280,7 +1280,7 @@ bool COFFView::Init()
12801280 coffSymbol.type = reader.Read16 ();
12811281 coffSymbol.storageClass = reader.Read8 ();
12821282
1283- DEBUG_COFF (AddUserDataReference (m_imageBase + itemAddress, m_imageBase + symbolOffset));
1283+ DEBUG_COFF (AddDataReference (m_imageBase + itemAddress, m_imageBase + symbolOffset));
12841284 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 ()));
12851285
12861286 DefineAutoSymbol (new Symbol (DataSymbol, " __reloc(" + symbolName + " )" , m_imageBase + relocationOffset));
@@ -1313,11 +1313,11 @@ bool COFFView::Init()
13131313 uint64_t relocTargetOffset = m_sections[reloc.sectionIndex ].virtualAddress + coffSymbol.value ;
13141314
13151315 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));
13171317
13181318 DefineRelocation (m_arch, reloc, m_imageBase + relocTargetOffset, m_imageBase + reloc.address );
13191319
1320- DEBUG_COFF (AddUserDataReference (m_imageBase + relocTargetOffset, m_imageBase + itemAddress));
1320+ DEBUG_COFF (AddDataReference (m_imageBase + relocTargetOffset, m_imageBase + itemAddress));
13211321 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 ));
13221322 }
13231323 else if (coffSymbol.storageClass == IMAGE_SYM_CLASS_EXTERNAL)
0 commit comments