diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-04 13:43:41 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-04 13:43:41 -0700 |
commit | f71937d4bb74ad0ba8937da94643ddfe403ea346 (patch) | |
tree | e28b08a9a3bdf0d356f13e4cfdab9de67e98a37d /src/rust-elfloader | |
parent | b9bd878207c6b784694c15675a09636d112242d7 (diff) |
Load ELF directly
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() { |