Home
last modified time | relevance | path

Searched refs:ParseError (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Delf.rs369 fn parse_ehdr(data: &[u8]) -> Result<FileHeader<AnyEndian>, elf::ParseError> { in parse_ehdr() argument
400 ) -> Result<Option<elf::segment::SegmentTable<'a, AnyEndian>>, elf::ParseError> { in parse_segments() argument
415 .map_err(|_| elf::ParseError::BadOffset(shoff as u64))?; in parse_segments()
419 .map_err(|_| elf::ParseError::BadOffset(shoff as u64))?; in parse_segments()
439 .ok_or(elf::ParseError::IntegerOverflow)?; in parse_segments()
442 .ok_or(elf::ParseError::IntegerOverflow)?; in parse_segments()
447 .map_err(|_| elf::ParseError::BadOffset(phoff as u64))?; in parse_segments()
502 .map_err(|_| ExecError::ParseError)? in load()
503 .ok_or(ExecError::ParseError)? in load()
773 fn get_bytes(self, range: Range<usize>) -> Result<&'data [u8], elf::ParseError>; in get_bytes() argument
[all …]
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs62 ParseError, enumerator
79 ExecError::ParseError => SystemError::ENOEXEC, in into()