Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elf: add PT_GNU_PROPERTY #530

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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