Lines Matching refs:file
8 use elf::{endian::AnyEndian, file::FileHeader, segment::ProgramHeader};
57 if ehdr.class != elf::file::Class::ELF64 { in probe_x86_64()
298 let file = param.file_mut(); in do_load_file() localVariable
299 if (file.metadata()?.size as usize) < offset_in_file + size { in do_load_file()
307 file.lseek(SeekFrom::SeekSet(offset_in_file as i64))?; in do_load_file()
311 file.read(read_size, &mut buf[..read_size])?; in do_load_file()
346 ehdr: &elf::file::FileHeader<AnyEndian>, in create_auxv()
371 let ident = elf::file::parse_ident::<AnyEndian>(ident_buf)?; in parse_ehdr()
375 elf::file::Class::ELF32 => tail_start + elf::file::ELF32_EHDR_TAILSIZE, in parse_ehdr()
376 elf::file::Class::ELF64 => tail_start + elf::file::ELF64_EHDR_TAILSIZE, in parse_ehdr()
405 let file = param.file_mut(); in parse_segments() localVariable
414 file.lseek(SeekFrom::SeekSet(shoff as i64)) in parse_segments()
418 file.read(shdr_buf_size as usize, &mut shdr_buf) in parse_segments()
446 file.lseek(SeekFrom::SeekSet(phoff as i64)) in parse_segments()
451 file.read(size, data_buf) in parse_segments()