Add some note n_type constants for GNU extension notes.

This commit is contained in:
Christopher Cole
2022-10-31 19:22:08 -07:00
parent 3713bb238f
commit af4b57b18c
+18
View File
@@ -961,3 +961,21 @@ pub const ELFCOMPRESS_HIOS: u32 = 0x6fffffff;
pub const ELFCOMPRESS_LOPROC: u32 = 0x70000000;
/// Values in [ELFCOMPRESS_LOPROC, ELFCOMPRESS_HIPROC] are reserved for processor-specific semantics.
pub const ELFCOMPRESS_HIPROC: u32 = 0x7fffffff;
// Note header descriptor types constants (n_type)
/// ABI information
/// The descriptor consists of words:
/// word 0: OS descriptor
/// word 1: major version of the ABI
/// word 2: minor version of the ABI
/// word 3: subminor version of the ABI
pub const NT_GNU_ABI_TAG: u64 = 1;
/// Synthetic hwcap information
pub const NT_GNU_HWCAP: u64 = 2;
/// Build ID bits as generated by ld --build-id.
pub const NT_GNU_BUILD_ID: u64 = 3;
/// Version note generated by GNU gold containing a version string
pub const NT_GNU_GOLD_VERSION: u64 = 4;
/// Program property note which describes special handling requirements for linker and run-time loader.
pub const NT_GNU_PROPERTY_TYPE_0: u64 = 5;