From 6db32717a003561cdc43a395820366156827be6e Mon Sep 17 00:00:00 2001 From: nlewycky Date: Fri, 15 May 2020 22:49:04 -0700 Subject: [PATCH] elf: add the x86-64 unwind processor specific section header type. (#224) --- src/elf/section_header.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/elf/section_header.rs b/src/elf/section_header.rs index 3c64d0f4d..9b5572d55 100644 --- a/src/elf/section_header.rs +++ b/src/elf/section_header.rs @@ -147,6 +147,8 @@ pub const SHT_HISUNW: u32 = 0x6fff_ffff; pub const SHT_HIOS: u32 = 0x6fff_ffff; /// Start of processor-specific. pub const SHT_LOPROC: u32 = 0x7000_0000; +/// X86-64 unwind information. +pub const SHT_X86_64_UNWIND: u32 = 0x7000_0001; /// End of processor-specific. pub const SHT_HIPROC: u32 = 0x7fff_ffff; /// Start of application-specific. @@ -235,6 +237,7 @@ pub fn sht_to_str(sht: u32) -> &'static str { SHT_GNU_VERNEED => "SHT_GNU_VERNEED", SHT_GNU_VERSYM => "SHT_GNU_VERSYM", SHT_LOPROC => "SHT_LOPROC", + SHT_X86_64_UNWIND => "SHT_X86_64_UNWIND", SHT_HIPROC => "SHT_HIPROC", SHT_LOUSER => "SHT_LOUSER", SHT_HIUSER => "SHT_HIUSER",