Package net.jsign.pe
Enum SectionFlag
- java.lang.Object
-
- java.lang.Enum<SectionFlag>
-
- net.jsign.pe.SectionFlag
-
- All Implemented Interfaces:
Serializable,Comparable<SectionFlag>
public enum SectionFlag extends Enum<SectionFlag>
Characteristics of the section of an executable file.- Since:
- 1.0
- Author:
- Emmanuel Bourg
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIGN_1024BYTESAlign data on a 1024-byte boundary.ALIGN_128BYTESAlign data on a 128-byte boundary.ALIGN_16BYTESAlign data on a 16-byte boundary.ALIGN_1BYTESAlign data on a 1-byte boundary.ALIGN_2048BYTESAlign data on a 2048-byte boundary.ALIGN_256BYTESAlign data on a 256-byte boundary.ALIGN_2BYTESAlign data on a 2-byte boundary.ALIGN_32BYTESAlign data on a 32-byte boundary.ALIGN_4096BYTESAlign data on a 4096-byte boundary.ALIGN_4BYTESAlign data on a 4-byte boundary.ALIGN_512BYTESAlign data on a 512-byte boundary.ALIGN_64BYTESAlign data on a 64-byte boundary.ALIGN_8192BYTESAlign data on an 8192-byte boundary.ALIGN_8BYTESAlign data on an 8-byte boundary.CODEThe section contains executable code.EXECUTEThe section can be executed as code.GPRELThe section contains data referenced through the global pointer (GP).INITIALIZED_DATAThe section contains initialized data.LNK_COMDATThe section contains COMDAT data.LNK_INFOThe section contains comments or other information.LNK_NRELOC_OVFLThe section contains extended relocations.LNK_OTHERReserved for future use.LNK_REMOVEThe section will not become part of the image.MEM_16BITFor ARM machine types, the section contains Thumb code.MEM_DISCARDABLEThe section can be discarded as needed.MEM_LOCKEDReserved for future use.MEM_NOT_CACHEDThe section cannot be cached.MEM_NOT_PAGEDThe section is not pageable.MEM_PRELOADReserved for future use.MEM_PURGEABLEReserved for future use.MEM_SHAREDThe section can be shared in memory.READThe section can be read.TYPE_NO_PADThe section should not be padded to the next boundary.UNINITIALIZED_DATAThe section contains uninitialized data.WRITEThe section can be written to.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SectionFlagvalueOf(String name)Returns the enum constant of this type with the specified name.static SectionFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_NO_PAD
public static final SectionFlag TYPE_NO_PAD
The section should not be padded to the next boundary. This flag is obsolete and is replaced by ALIGN_1BYTES. This is valid only for object files..
-
CODE
public static final SectionFlag CODE
The section contains executable code.
-
INITIALIZED_DATA
public static final SectionFlag INITIALIZED_DATA
The section contains initialized data.
-
UNINITIALIZED_DATA
public static final SectionFlag UNINITIALIZED_DATA
The section contains uninitialized data.
-
LNK_OTHER
public static final SectionFlag LNK_OTHER
Reserved for future use.
-
LNK_INFO
public static final SectionFlag LNK_INFO
The section contains comments or other information. The .drectve section has this type. This is valid for object files only.
-
LNK_REMOVE
public static final SectionFlag LNK_REMOVE
The section will not become part of the image. This is valid only for object files.
-
LNK_COMDAT
public static final SectionFlag LNK_COMDAT
The section contains COMDAT data. This is valid only for object files.
-
GPREL
public static final SectionFlag GPREL
The section contains data referenced through the global pointer (GP).
-
MEM_PURGEABLE
public static final SectionFlag MEM_PURGEABLE
Reserved for future use.
-
MEM_16BIT
public static final SectionFlag MEM_16BIT
For ARM machine types, the section contains Thumb code. Reserved for future use with other machine types.
-
MEM_LOCKED
public static final SectionFlag MEM_LOCKED
Reserved for future use.
-
MEM_PRELOAD
public static final SectionFlag MEM_PRELOAD
Reserved for future use.
-
ALIGN_1BYTES
public static final SectionFlag ALIGN_1BYTES
Align data on a 1-byte boundary. Valid only for object files.
-
ALIGN_2BYTES
public static final SectionFlag ALIGN_2BYTES
Align data on a 2-byte boundary. Valid only for object files.
-
ALIGN_4BYTES
public static final SectionFlag ALIGN_4BYTES
Align data on a 4-byte boundary. Valid only for object files.
-
ALIGN_8BYTES
public static final SectionFlag ALIGN_8BYTES
Align data on an 8-byte boundary. Valid only for object files.
-
ALIGN_16BYTES
public static final SectionFlag ALIGN_16BYTES
Align data on a 16-byte boundary. Valid only for object files.
-
ALIGN_32BYTES
public static final SectionFlag ALIGN_32BYTES
Align data on a 32-byte boundary. Valid only for object files.
-
ALIGN_64BYTES
public static final SectionFlag ALIGN_64BYTES
Align data on a 64-byte boundary. Valid only for object files.
-
ALIGN_128BYTES
public static final SectionFlag ALIGN_128BYTES
Align data on a 128-byte boundary. Valid only for object files.
-
ALIGN_256BYTES
public static final SectionFlag ALIGN_256BYTES
Align data on a 256-byte boundary. Valid only for object files.
-
ALIGN_512BYTES
public static final SectionFlag ALIGN_512BYTES
Align data on a 512-byte boundary. Valid only for object files.
-
ALIGN_1024BYTES
public static final SectionFlag ALIGN_1024BYTES
Align data on a 1024-byte boundary. Valid only for object files.
-
ALIGN_2048BYTES
public static final SectionFlag ALIGN_2048BYTES
Align data on a 2048-byte boundary. Valid only for object files.
-
ALIGN_4096BYTES
public static final SectionFlag ALIGN_4096BYTES
Align data on a 4096-byte boundary. Valid only for object files.
-
ALIGN_8192BYTES
public static final SectionFlag ALIGN_8192BYTES
Align data on an 8192-byte boundary. Valid only for object files.
-
LNK_NRELOC_OVFL
public static final SectionFlag LNK_NRELOC_OVFL
The section contains extended relocations.
-
MEM_DISCARDABLE
public static final SectionFlag MEM_DISCARDABLE
The section can be discarded as needed.
-
MEM_NOT_CACHED
public static final SectionFlag MEM_NOT_CACHED
The section cannot be cached.
-
MEM_NOT_PAGED
public static final SectionFlag MEM_NOT_PAGED
The section is not pageable.
-
MEM_SHARED
public static final SectionFlag MEM_SHARED
The section can be shared in memory.
-
EXECUTE
public static final SectionFlag EXECUTE
The section can be executed as code.
-
READ
public static final SectionFlag READ
The section can be read.
-
WRITE
public static final SectionFlag WRITE
The section can be written to.
-
-
Method Detail
-
values
public static SectionFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SectionFlag c : SectionFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SectionFlag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-