2 writes to RelativeVirtualAddress
System.Reflection.Metadata (2)
System\Reflection\PortableExecutable\DirectoryEntry.cs (2)
13RelativeVirtualAddress = relativeVirtualAddress; 19RelativeVirtualAddress = reader.ReadInt32();
74 references to RelativeVirtualAddress
BuildValidator (2)
PEReaderExtensions.cs (2)
28if ((exportTable.Size == 0) || (exportTable.RelativeVirtualAddress == 0)) 32BlobReader exportTableHeader = peImage.GetReader(peReader.GetOffset(exportTable.RelativeVirtualAddress), exportTable.Size);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
12308Assert.Equal(0, debugDirectory.RelativeVirtualAddress);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (49)
Emit\CompilationEmitTests.cs (9)
3588Assert.Equal(0, peHeaders.PEHeader.ImportAddressTableDirectory.RelativeVirtualAddress); 3590Assert.Equal(0, peHeaders.PEHeader.ImportTableDirectory.RelativeVirtualAddress); 3592Assert.Equal(0, peHeaders.PEHeader.BaseRelocationTableDirectory.RelativeVirtualAddress); 3628Assert.Equal(0, peHeaders.PEHeader.ImportAddressTableDirectory.RelativeVirtualAddress); 3630Assert.Equal(0, peHeaders.PEHeader.ImportTableDirectory.RelativeVirtualAddress); 3632Assert.Equal(0, peHeaders.PEHeader.BaseRelocationTableDirectory.RelativeVirtualAddress); 3670Assert.NotEqual(0, peHeaders.PEHeader.ImportAddressTableDirectory.RelativeVirtualAddress); 3672Assert.NotEqual(0, peHeaders.PEHeader.ImportTableDirectory.RelativeVirtualAddress); 3674Assert.NotEqual(0, peHeaders.PEHeader.BaseRelocationTableDirectory.RelativeVirtualAddress);
Emit\EmitMetadataTests.cs (40)
2275Assert.Equal(0x4000, peHeader.BaseRelocationTableDirectory.RelativeVirtualAddress); 2277Assert.Equal(0, peHeader.BoundImportTableDirectory.RelativeVirtualAddress); 2279Assert.Equal(0, peHeader.CertificateTableDirectory.RelativeVirtualAddress); 2281Assert.Equal(0, peHeader.CopyrightTableDirectory.RelativeVirtualAddress); 2283Assert.Equal(0x2008, peHeader.CorHeaderTableDirectory.RelativeVirtualAddress); 2285Assert.Equal(0x2310, peHeader.DebugTableDirectory.RelativeVirtualAddress); 2287Assert.Equal(0, peHeader.ExceptionTableDirectory.RelativeVirtualAddress); 2289Assert.Equal(0, peHeader.ExportTableDirectory.RelativeVirtualAddress); 2291Assert.Equal(0x2000, peHeader.ImportAddressTableDirectory.RelativeVirtualAddress); 2293Assert.Equal(0x232C, peHeader.ImportTableDirectory.RelativeVirtualAddress); 2295Assert.Equal(0, peHeader.LoadConfigTableDirectory.RelativeVirtualAddress); 2297Assert.Equal(0, peHeader.ResourceTableDirectory.RelativeVirtualAddress); 2299Assert.Equal(0, peHeader.ThreadLocalStorageTableDirectory.RelativeVirtualAddress); 2364Assert.Equal(0, corHeader.CodeManagerTableDirectory.RelativeVirtualAddress); 2366Assert.Equal(0, corHeader.ExportAddressTableJumpsDirectory.RelativeVirtualAddress); 2368Assert.Equal(0, corHeader.ManagedNativeHeaderDirectory.RelativeVirtualAddress); 2370Assert.Equal(0x2058, corHeader.MetadataDirectory.RelativeVirtualAddress); 2372Assert.Equal(0, corHeader.ResourcesDirectory.RelativeVirtualAddress); 2374Assert.Equal(0, corHeader.StrongNameSignatureDirectory.RelativeVirtualAddress); 2376Assert.Equal(0, corHeader.VtableFixupsDirectory.RelativeVirtualAddress); 2462Assert.Equal(0, peHeader.BaseRelocationTableDirectory.RelativeVirtualAddress); 2464Assert.Equal(0, peHeader.BoundImportTableDirectory.RelativeVirtualAddress); 2466Assert.Equal(0, peHeader.CertificateTableDirectory.RelativeVirtualAddress); 2468Assert.Equal(0, peHeader.CopyrightTableDirectory.RelativeVirtualAddress); 2470Assert.Equal(0x2000, peHeader.CorHeaderTableDirectory.RelativeVirtualAddress); 2472Assert.Equal(0x2324, peHeader.DebugTableDirectory.RelativeVirtualAddress); 2474Assert.Equal(0, peHeader.ExceptionTableDirectory.RelativeVirtualAddress); 2476Assert.Equal(0, peHeader.ExportTableDirectory.RelativeVirtualAddress); 2478Assert.Equal(0, peHeader.ImportAddressTableDirectory.RelativeVirtualAddress); 2480Assert.Equal(0, peHeader.ImportTableDirectory.RelativeVirtualAddress); 2482Assert.Equal(0, peHeader.LoadConfigTableDirectory.RelativeVirtualAddress); 2484Assert.Equal(0, peHeader.ResourceTableDirectory.RelativeVirtualAddress); 2486Assert.Equal(0, peHeader.ThreadLocalStorageTableDirectory.RelativeVirtualAddress); 2502Assert.Equal(0, corHeader.CodeManagerTableDirectory.RelativeVirtualAddress); 2504Assert.Equal(0, corHeader.ExportAddressTableJumpsDirectory.RelativeVirtualAddress); 2506Assert.Equal(0, corHeader.ManagedNativeHeaderDirectory.RelativeVirtualAddress); 2508Assert.Equal(0x2054, corHeader.MetadataDirectory.RelativeVirtualAddress); 2510Assert.Equal(0, corHeader.ResourcesDirectory.RelativeVirtualAddress); 2512Assert.Equal(0, corHeader.StrongNameSignatureDirectory.RelativeVirtualAddress); 2514Assert.Equal(0, corHeader.VtableFixupsDirectory.RelativeVirtualAddress);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
106var win32Resources = OptionsReader.PeReader.GetSectionData(peHeader.ResourceTableDirectory.RelativeVirtualAddress);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
9719Assert.Equal(0, debugDirectory.RelativeVirtualAddress)
System.Reflection.Metadata (19)
System\Reflection\PortableExecutable\ManagedTextSection.cs (2)
260int importTableRva = GetImportTableDirectoryEntry(relativeVirtualAddess).RelativeVirtualAddress; 261int importAddressTableRva = GetImportAddressTableDirectoryEntry(relativeVirtualAddess).RelativeVirtualAddress;
System\Reflection\PortableExecutable\PEBuilder.cs (14)
307builder.WriteUInt32((uint)directories.ExportTable.RelativeVirtualAddress); 309builder.WriteUInt32((uint)directories.ImportTable.RelativeVirtualAddress); 311builder.WriteUInt32((uint)directories.ResourceTable.RelativeVirtualAddress); 313builder.WriteUInt32((uint)directories.ExceptionTable.RelativeVirtualAddress); 320builder.WriteUInt32((uint)directories.BaseRelocationTable.RelativeVirtualAddress); 322builder.WriteUInt32((uint)directories.DebugTable.RelativeVirtualAddress); 324builder.WriteUInt32((uint)directories.CopyrightTable.RelativeVirtualAddress); 326builder.WriteUInt32((uint)directories.GlobalPointerTable.RelativeVirtualAddress); 328builder.WriteUInt32((uint)directories.ThreadLocalStorageTable.RelativeVirtualAddress); 330builder.WriteUInt32((uint)directories.LoadConfigTable.RelativeVirtualAddress); 332builder.WriteUInt32((uint)directories.BoundImportTable.RelativeVirtualAddress); 334builder.WriteUInt32((uint)directories.ImportAddressTable.RelativeVirtualAddress); 336builder.WriteUInt32((uint)directories.DelayImportTable.RelativeVirtualAddress); 338builder.WriteUInt32((uint)directories.CorHeaderTable.RelativeVirtualAddress);
System\Reflection\PortableExecutable\PEHeaders.cs (3)
324int sectionIndex = GetContainingSectionIndex(directory.RelativeVirtualAddress); 331int relativeOffset = directory.RelativeVirtualAddress - _sectionHeaders[sectionIndex].VirtualAddress; 337offset = _isLoadedImage ? directory.RelativeVirtualAddress : _sectionHeaders[sectionIndex].PointerToRawData + relativeOffset;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
34PEMemoryBlock resourceDirectory = pe.GetSectionData(pe.PEHeaders.CorHeader!.ResourcesDirectory.RelativeVirtualAddress);