Table of Contents

Enum SectionFlags

Namespace
AsmResolver.PE.File
Assembly
AsmResolver.PE.File.dll

Provides members describing all possible flags that can be assigned to a section.

[Flags]
public enum SectionFlags : uint

Fields

Align1024Bytes = Align1Bytes | Align512Bytes

Align data on a 1024-byte boundary. Valid only for object files.

Align128Bytes = 8388608

Align data on a 128-byte boundary. Valid only for object files.

Align16Bytes = Align1Bytes | Align8Bytes

Align data on a 16-byte boundary. Valid only for object files.

Align1Bytes = 1048576

Align data on a 1-byte boundary. Valid only for object files.

Align2048Bytes = Align8Bytes | Align128Bytes

Align data on a 2048-byte boundary. Valid only for object files.

Align256Bytes = Align1Bytes | Align128Bytes

Align data on a 256-byte boundary. Valid only for object files.

Align2Bytes = 2097152

Align data on a 2-byte boundary. Valid only for object files.

Align32Bytes = Align2Bytes | Align8Bytes

Align data on a 32-byte boundary. Valid only for object files.

Align4096Bytes = Align1Bytes | Align2048Bytes

Align data on a 4096-byte boundary. Valid only for object files.

Align4Bytes = Align1Bytes | Align2Bytes

Align data on a 4-byte boundary. Valid only for object files.

Align512Bytes = Align2Bytes | Align128Bytes

Align data on a 512-byte boundary. Valid only for object files.

Align64Bytes = Align1Bytes | Align32Bytes

Align data on a 64-byte boundary. Valid only for object files.

Align8192Bytes = Align2Bytes | Align2048Bytes

Align data on an 8192-byte boundary. Valid only for object files.

Align8Bytes = 4194304

Align data on an 8-byte boundary. Valid only for object files.

ContentCode = 32

The section contains executable code.

ContentInitializedData = 64

The section contains initialized data.

ContentUninitializedData = 128

The section contains uninitialized data.

LinkComDat = 4096

The section contains COMDAT data. For more information, see section 5.5.6, COMDAT Sections (Object Only). This is valid only for object files.

LinkExtendedRelocationOverflow = 16777216

The section contains extended relocations.

LinkInfo = 512

The section contains comments or other information. The .drectve section has this type. This is valid for object files only.

LinkOther = 256

Reserved for future use.

LinkRemove = 2048

The section will not become part of the image. This is valid only for object files.

MemPurgeable = 131072

Reserved for future use.

Memory16Bit = 131072

Reserved for future use.

MemoryDiscardable = 33554432

The section can be discarded as needed.

MemoryExecute = 536870912

The section can be executed as code.

MemoryLocked = 262144

Reserved for future use.

MemoryNotCached = 67108864

The section cannot be cached.

MemoryNotPaged = 134217728

The section is not pageable.

MemoryPreload = 524288

Reserved for future use.

MemoryRead = 1073741824

The section can be read.

MemoryShared = 268435456

The section can be shared in memory.

MemoryWrite = 2147483648

The section can be written.

NoDeferSpecExceptions = 16384

Reset speculative exceptions handling bits in the TLB entries for this section.

RelativeGp = 32768

The section contains data referenced through the global pointer (GP).

TypeCopy = 16

Reserved for future use.

TypeDsect = 1

Reserved for future use.

TypeGroup = 4

Reserved for future use.

TypeNoLoad = 2

Reserved for future use.

TypeNoPadded = 8

The section should not be padded to the next boundary. This flag is obsolete and is replaced by Align1Bytes. This is valid only for object files.

TypeOver = 1024

Reserved for future use.