Skip to content

Commit

Permalink
elf: add the x86-64 unwind processor specific section header type. (#224
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nlewycky authored May 16, 2020
1 parent 9c3647e commit 6db3271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/elf/section_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 6db3271

Please sign in to comment.