aboutsummaryrefslogtreecommitdiff
path: root/src/rust-elfloader
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-04 13:43:41 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-04 13:43:41 -0700
commitf71937d4bb74ad0ba8937da94643ddfe403ea346 (patch)
treee28b08a9a3bdf0d356f13e4cfdab9de67e98a37d /src/rust-elfloader
parentb9bd878207c6b784694c15675a09636d112242d7 (diff)
Load ELF directly
Diffstat (limited to 'src/rust-elfloader')
-rw-r--r--src/rust-elfloader/src/lib.rs4
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() {