From f71937d4bb74ad0ba8937da94643ddfe403ea346 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 4 Jan 2016 13:43:41 -0700 Subject: Load ELF directly --- src/rust-elfloader/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rust-elfloader') 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() { -- cgit v1.2.3