elf: Add constants for GNU SFrame (#799)

This commit is contained in:
Mateusz Mikuła
2025-08-06 06:13:34 +02:00
committed by Philip Craig
parent 8500ba613b
commit 31a232f3c7
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -1370,6 +1370,7 @@ const FLAGS_PT: &[Flag<u32>] = &flags!(
PT_GNU_STACK,
PT_GNU_RELRO,
PT_GNU_PROPERTY,
PT_GNU_SFRAME
);
const FLAGS_PT_HP: &[Flag<u32>] = &flags!(
PT_HP_TLS,
@@ -1431,6 +1432,7 @@ const FLAGS_SHT: &[Flag<u32>] = &flags!(
SHT_SYMTAB_SHNDX,
SHT_RELR,
SHT_LLVM_DEPENDENT_LIBRARIES,
SHT_GNU_SFRAME,
SHT_GNU_ATTRIBUTES,
SHT_GNU_HASH,
SHT_GNU_LIBLIST,
+4
View File
@@ -719,6 +719,8 @@ pub const SHT_CREL: u32 = 0x40000014;
pub const SHT_LOOS: u32 = 0x6000_0000;
/// LLVM-style dependent libraries.
pub const SHT_LLVM_DEPENDENT_LIBRARIES: u32 = 0x6fff4c04;
/// GNU SFrame stack trace format.
pub const SHT_GNU_SFRAME: u32 = 0x6fff_fff4;
/// Object attributes.
pub const SHT_GNU_ATTRIBUTES: u32 = 0x6fff_fff5;
/// GNU-style hash table.
@@ -1309,6 +1311,8 @@ pub const PT_GNU_STACK: u32 = 0x6474_e551;
pub const PT_GNU_RELRO: u32 = 0x6474_e552;
/// Segment containing `.note.gnu.property` section.
pub const PT_GNU_PROPERTY: u32 = 0x6474_e553;
/// GNU SFrame stack trace format.
pub const PT_GNU_SFRAME: u32 = 0x6474_e554;
/// End of OS-specific segment types.
pub const PT_HIOS: u32 = 0x6fff_ffff;
/// Start of processor-specific segment types.