Skip to content

Commit 0eed52c

Browse files
committed
Add GNU Property Note
1 parent 408ce10 commit 0eed52c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "object"
33
version = "0.31.0"
44
edition = "2018"
55
exclude = ["/.github", "/testfiles"]
6-
keywords = ["object", "elf", "mach-o", "pe", "coff", "xcoff"]
6+
keywords = ["object", "elf", "mach-o", "pe", "coff"]
77
license = "Apache-2.0 OR MIT"
88
repository = "https://github.com/gimli-rs/object"
99
description = "A unified interface for reading and writing object file formats."

src/elf.rs

Lines changed: 14 additions & 0 deletions
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)