Skip to content

Commit

Permalink
elf: add PT_GNU_PROPERTY (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc authored Apr 3, 2023
1 parent f180b9e commit e3612d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/examples/src/readobj/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ fn print_program_headers<Elf: FileHeader>(
//PT_GNU_EH_FRAME =>
//PT_GNU_STACK =>
//PT_GNU_RELRO =>
//PT_GNU_PROPERTY =>
_ => {}
}
});
Expand Down Expand Up @@ -1169,6 +1170,7 @@ static FLAGS_PT: &[Flag<u32>] = &flags!(
PT_GNU_EH_FRAME,
PT_GNU_STACK,
PT_GNU_RELRO,
PT_GNU_PROPERTY,
);
static FLAGS_PT_HP: &[Flag<u32>] = &flags!(
PT_HP_TLS,
Expand Down
2 changes: 2 additions & 0 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,8 @@ pub const PT_GNU_EH_FRAME: u32 = 0x6474_e550;
pub const PT_GNU_STACK: u32 = 0x6474_e551;
/// Read-only after relocation.
pub const PT_GNU_RELRO: u32 = 0x6474_e552;
/// Segment containing `.note.gnu.property` section.
pub const PT_GNU_PROPERTY: u32 = 0x6474_e553;
/// End of OS-specific segment types.
pub const PT_HIOS: u32 = 0x6fff_ffff;
/// Start of processor-specific segment types.
Expand Down

0 comments on commit e3612d2

Please sign in to comment.