From 2e37b0fb50f617447ac0db9dcec09b8bb06dfa1e Mon Sep 17 00:00:00 2001 From: Charisee Date: Sat, 22 Apr 2023 03:38:47 +0000 Subject: [PATCH] Added more constants with documentation --- src/elf.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/elf.rs b/src/elf.rs index 708cb878..5fedfb41 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -1900,11 +1900,19 @@ pub const NT_GNU_GOLD_VERSION: u32 = 4; pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; // TODO: GNU_PROPERTY_* -// Property Type -pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 0xc0000000; + +/// GNU Property Type for X86 pub const GNU_PROPERTY_X86_FEATURE_1_AND: u32 = 0xc0000002; +/// GNU Property Type for IBT X86 pub const GNU_PROPERTY_X86_FEATURE_1_IBT: u32 = 1 << 0; +/// GNU Property Type for SHSTK X86 pub const GNU_PROPERTY_X86_FEATURE_1_SHSTK: u32 = 1 << 1; +/// GNU Property Type for AARCH64 +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 0xc0000000; +/// GNU Property Type for BTI AArch64 +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1 << 0; +/// GNU Property Type for PAC AArch64 +pub const GNU_PROPERTY_AARCH64_FEATURE_1_PAC: u32 = 1 << 0; // TODO: Elf*_Move