Skip to content

Commit a68cfc5

Browse files
authored
Add GNU Property Note (#537)
1 parent 8670554 commit a68cfc5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/elf.rs

+14
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,20 @@ pub const NT_GNU_GOLD_VERSION: u32 = 4;
19001900
pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5;
19011901

19021902
// TODO: GNU_PROPERTY_*
1903+
1904+
/// GNU Property Type for X86
1905+
pub const GNU_PROPERTY_X86_FEATURE_1_AND: u32 = 0xc0000002;
1906+
/// GNU Property Type for IBT X86
1907+
pub const GNU_PROPERTY_X86_FEATURE_1_IBT: u32 = 1 << 0;
1908+
/// GNU Property Type for SHSTK X86
1909+
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;
1916+
19031917
// TODO: Elf*_Move
19041918

19051919
/// Header of `SHT_HASH` section.

0 commit comments

Comments
 (0)