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:
Christopher Cole
2022-11-04 23:08:26 -07:00
parent 6d6d1e23ce
commit ae16e4762e
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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)?;
+2 -2
View File
@@ -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
View File
@@ -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;