Rename file.rs -> elf_stream.rs
This keeps the git history intact for git blame. The next patch will move FileHeader back over to file.rs
This commit is contained in:
+3
-3
@@ -3,8 +3,8 @@ use core::ops::Range;
|
||||
use crate::abi;
|
||||
use crate::compression::CompressionHeader;
|
||||
use crate::dynamic::{DynIterator, DynamicTable};
|
||||
use crate::elf_stream::FileHeader;
|
||||
use crate::endian::EndianParse;
|
||||
use crate::file::FileHeader;
|
||||
use crate::hash::SysVHashTable;
|
||||
use crate::note::NoteIterator;
|
||||
use crate::parse::{Class, ParseAt, ParseError};
|
||||
@@ -153,8 +153,8 @@ impl<'data, E: EndianParse> ElfBytes<'data, E> {
|
||||
|
||||
let tail_start = abi::EI_NIDENT;
|
||||
let tail_end = match ident.1 {
|
||||
Class::ELF32 => tail_start + crate::file::ELF32_EHDR_TAILSIZE,
|
||||
Class::ELF64 => tail_start + crate::file::ELF64_EHDR_TAILSIZE,
|
||||
Class::ELF32 => tail_start + crate::elf_stream::ELF32_EHDR_TAILSIZE,
|
||||
Class::ELF64 => tail_start + crate::elf_stream::ELF64_EHDR_TAILSIZE,
|
||||
};
|
||||
let tail_buf = data.get_bytes(tail_start..tail_end)?;
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ impl<E: EndianParse, S: std::io::Read + std::io::Seek> ElfStream<E, S> {
|
||||
|
||||
let tail_start = abi::EI_NIDENT;
|
||||
let tail_end = match ident.1 {
|
||||
Class::ELF32 => tail_start + crate::file::ELF32_EHDR_TAILSIZE,
|
||||
Class::ELF64 => tail_start + crate::file::ELF64_EHDR_TAILSIZE,
|
||||
Class::ELF32 => tail_start + crate::elf_stream::ELF32_EHDR_TAILSIZE,
|
||||
Class::ELF64 => tail_start + crate::elf_stream::ELF64_EHDR_TAILSIZE,
|
||||
};
|
||||
cr.load_bytes(tail_start..tail_end)?;
|
||||
let tail_buf = cr.get_bytes(tail_start..tail_end);
|
||||
+2
-2
@@ -58,7 +58,7 @@
|
||||
pub mod abi;
|
||||
pub mod compression;
|
||||
pub mod dynamic;
|
||||
pub mod file;
|
||||
pub mod elf_stream;
|
||||
pub mod gnu_symver;
|
||||
pub mod hash;
|
||||
pub mod note;
|
||||
@@ -79,6 +79,6 @@ pub use elf_bytes::CommonElfSections;
|
||||
pub use elf_bytes::ElfBytes;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
pub use file::ElfStream;
|
||||
pub use elf_stream::ElfStream;
|
||||
|
||||
pub use parse::ParseError;
|
||||
|
||||
Reference in New Issue
Block a user