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