diff options
Diffstat (limited to 'src/rust-elfloader')
-rw-r--r-- | src/rust-elfloader/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rust-elfloader/src/lib.rs b/src/rust-elfloader/src/lib.rs index e344bcb..92cae24 100644 --- a/src/rust-elfloader/src/lib.rs +++ b/src/rust-elfloader/src/lib.rs @@ -58,6 +58,10 @@ impl<'s> ElfBinary<'s> { None } + pub fn file_header(&self) -> &'s elf::FileHeader { + self.header + } + /// Print the program headers. pub fn print_program_headers(&self) { for p in self.program_headers() { |