forked from m4b/goblin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Documented the DOS header * Partially documented COFF header and added more machine constants * Started documenting optional header * Documented standard fields * Nearly fully documented the PE optional header
- Loading branch information
1 parent
e19ccf2
commit e5b7100
Showing
6 changed files
with
686 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//! Constants for characteristics of image files. These constants are used in the | ||
//! [`goblin::pe::optional_header::WindowsFields::dll_characteristics`](crate::pe::optional_header::WindowsFields::dll_characteristics) | ||
//! field. | ||
//! | ||
//! The values 0x0001, 0x0002, 0x0004, 0x0008 are reserved for future use and must be zero. | ||
/// Image can handle a high entropy 64-bit virtual address space. | ||
pub const IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA: u16 = 0x0020; | ||
|
||
/// DLL can be relocated at load time. | ||
pub const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE: u16 = 0x0040; | ||
|
||
/// Code Integrity checks are enforced. | ||
pub const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY: u16 = 0x0080; | ||
|
||
/// Image is NX compatible. | ||
pub const IMAGE_DLLCHARACTERISTICS_NX_COMPAT: u16 = 0x0100; | ||
|
||
/// Isolation aware, but do not isolate the image. | ||
pub const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION: u16 = 0x0200; | ||
|
||
/// Does not use structured exception (SE) handling. No SE handler may be called in this image. | ||
pub const IMAGE_DLLCHARACTERISTICS_NO_SEH: u16 = 0x0400; | ||
|
||
/// Do not bind the image. | ||
pub const IMAGE_DLLCHARACTERISTICS_NO_BIND: u16 = 0x0800; | ||
|
||
/// Image must execute in an AppContainer. | ||
pub const IMAGE_DLLCHARACTERISTICS_APPCONTAINER: u16 = 0x1000; | ||
|
||
/// A WDM driver. | ||
pub const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER: u16 = 0x2000; | ||
|
||
/// Image supports Control Flow Guard. | ||
pub const IMAGE_DLLCHARACTERISTICS_GUARD_CF: u16 = 0x4000; | ||
|
||
/// Terminal Server aware. | ||
pub const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE: u16 = 0x8000; |
Oops, something went wrong.