summaryrefslogtreecommitdiffstats
path: root/vendor/object/src/pe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/object/src/pe.rs')
-rw-r--r--vendor/object/src/pe.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/object/src/pe.rs b/vendor/object/src/pe.rs
index bac101ea0..f274d2270 100644
--- a/vendor/object/src/pe.rs
+++ b/vendor/object/src/pe.rs
@@ -2873,10 +2873,14 @@ pub struct ImportObjectHeader {
pub name_type: U16<LE>,
}
+pub const IMPORT_OBJECT_TYPE_MASK: u16 = 0b11;
+pub const IMPORT_OBJECT_TYPE_SHIFT: u16 = 0;
pub const IMPORT_OBJECT_CODE: u16 = 0;
pub const IMPORT_OBJECT_DATA: u16 = 1;
pub const IMPORT_OBJECT_CONST: u16 = 2;
+pub const IMPORT_OBJECT_NAME_MASK: u16 = 0b111;
+pub const IMPORT_OBJECT_NAME_SHIFT: u16 = 2;
/// Import by ordinal
pub const IMPORT_OBJECT_ORDINAL: u16 = 0;
/// Import name == public symbol name.