Skip to content

Commit 2e37b0f

Browse files
author
Charisee
committed
Added more constants with documentation
1 parent ea9c41f commit 2e37b0f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/elf.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1900,11 +1900,19 @@ pub const NT_GNU_GOLD_VERSION: u32 = 4;
19001900
pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5;
19011901

19021902
// TODO: GNU_PROPERTY_*
1903-
// Property Type
1904-
pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 0xc0000000;
1903+
1904+
/// GNU Property Type for X86
19051905
pub const GNU_PROPERTY_X86_FEATURE_1_AND: u32 = 0xc0000002;
1906+
/// GNU Property Type for IBT X86
19061907
pub const GNU_PROPERTY_X86_FEATURE_1_IBT: u32 = 1 << 0;
1908+
/// GNU Property Type for SHSTK X86
19071909
pub const GNU_PROPERTY_X86_FEATURE_1_SHSTK: u32 = 1 << 1;
1910+
/// GNU Property Type for AARCH64
1911+
pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 0xc0000000;
1912+
/// GNU Property Type for BTI AArch64
1913+
pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1 << 0;
1914+
/// GNU Property Type for PAC AArch64
1915+
pub const GNU_PROPERTY_AARCH64_FEATURE_1_PAC: u32 = 1 << 0;
19081916

19091917
// TODO: Elf*_Move
19101918

0 commit comments

Comments
 (0)