36 references to SectionCharacteristics
Microsoft.CodeAnalysis (3)
PEWriter\ExtendedPEBuilder.cs (3)
59
builder.Add(new Section(MvidSectionName,
SectionCharacteristics
.MemRead |
60
SectionCharacteristics
.ContainsInitializedData |
61
SectionCharacteristics
.MemDiscardable));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
Emit\CompilationEmitTests.cs (3)
619
new Section(".mvid",
SectionCharacteristics
.MemRead |
620
SectionCharacteristics
.ContainsInitializedData |
621
SectionCharacteristics
.MemDiscardable));
Emit\EmitMetadataTests.cs (9)
2388
Assert.Equal(
SectionCharacteristics
.ContainsCode |
SectionCharacteristics
.MemExecute |
SectionCharacteristics
.MemRead, sections[0].SectionCharacteristics);
2399
Assert.Equal(
SectionCharacteristics
.ContainsInitializedData |
SectionCharacteristics
.MemDiscardable |
SectionCharacteristics
.MemRead, sections[1].SectionCharacteristics);
2526
Assert.Equal(
SectionCharacteristics
.ContainsCode |
SectionCharacteristics
.MemExecute |
SectionCharacteristics
.MemRead, sections[0].SectionCharacteristics);
System.Reflection.Metadata (21)
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (8)
97
builder.Add(new Section(TextSectionName,
SectionCharacteristics
.MemRead |
SectionCharacteristics
.MemExecute |
SectionCharacteristics
.ContainsCode));
101
builder.Add(new Section(ResourceSectionName,
SectionCharacteristics
.MemRead |
SectionCharacteristics
.ContainsInitializedData));
106
builder.Add(new Section(RelocationSectionName,
SectionCharacteristics
.MemRead |
SectionCharacteristics
.MemDiscardable |
SectionCharacteristics
.ContainsInitializedData));
System\Reflection\PortableExecutable\PEBuilder.cs (11)
24
public readonly
SectionCharacteristics
Characteristics;
26
public Section(string name,
SectionCharacteristics
characteristics)
43
public readonly
SectionCharacteristics
Characteristics;
48
public SerializedSection(BlobBuilder builder, string name,
SectionCharacteristics
characteristics, int relativeVirtualAddress, int sizeOfRawData, int pointerToRawData)
229
builder.WriteUInt32((uint)SumRawDataSizes(sections,
SectionCharacteristics
.ContainsCode));
232
builder.WriteUInt32((uint)SumRawDataSizes(sections,
SectionCharacteristics
.ContainsInitializedData));
235
builder.WriteUInt32((uint)SumRawDataSizes(sections,
SectionCharacteristics
.ContainsUninitializedData));
241
int codeSectionIndex = IndexOfSection(sections,
SectionCharacteristics
.ContainsCode);
247
int dataSectionIndex = IndexOfSection(sections,
SectionCharacteristics
.ContainsInitializedData);
392
private static int IndexOfSection(ImmutableArray<SerializedSection> sections,
SectionCharacteristics
characteristics)
405
private static int SumRawDataSizes(ImmutableArray<SerializedSection> sections,
SectionCharacteristics
characteristics)
System\Reflection\PortableExecutable\SectionHeader.cs (2)
73
public
SectionCharacteristics
SectionCharacteristics { get; }
100
SectionCharacteristics = (
SectionCharacteristics
)reader.ReadUInt32();