From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/object/src/pe.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vendor/object/src/pe.rs') 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, } +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. -- cgit v1.2.3