Add AT_PHDR

This commit is contained in:
jD91mZM2
2020-07-10 12:48:40 +02:00
parent 3430eadc9a
commit 4b8d2e45c6
3 changed files with 13 additions and 6 deletions
+5
View File
@@ -73,6 +73,11 @@ impl<'a> Elf<'a> {
pub fn entry(&self) -> usize {
self.header.e_entry as usize
}
/// Get the program header offset
pub fn program_headers(&self) -> usize {
self.header.e_phoff as usize
}
}
pub struct ElfSections<'a> {