Lines Matching refs:ExecError
24 exec::{BinaryLoader, BinaryLoaderResult, ExecError, ExecLoadMode, ExecParam},
55 ) -> Result<(), ExecError> { in probe_x86_64() argument
58 return Err(ExecError::WrongArchitecture); in probe_x86_64()
63 return Err(ExecError::WrongArchitecture); in probe_x86_64()
70 return Err(ExecError::NotExecutable); in probe_x86_64()
73 return Err(ExecError::NotSupported); in probe_x86_64()
93 ) -> Result<(), ExecError> { in set_elf_brk() argument
106 return Err(ExecError::OutOfMemory); in set_elf_brk()
347 ) -> Result<(), ExecError> { in create_auxv() argument
464 fn probe(self: &'static Self, param: &ExecParam, buf: &[u8]) -> Result<(), ExecError> { in probe() argument
468 let ehdr = Self::parse_ehdr(buf).map_err(|_| ExecError::NotExecutable)?; in probe()
481 ) -> Result<BinaryLoaderResult, ExecError> { in load() argument
483 let ehdr = Self::parse_ehdr(head_buf).map_err(|_| ExecError::NotExecutable)?; in load()
502 .map_err(|_| ExecError::ParseError)? in load()
503 .ok_or(ExecError::ParseError)? in load()
585 SystemError::EFAULT => ExecError::BadAddress(None), in load()
586 SystemError::ENOMEM => ExecError::OutOfMemory, in load()
587 _ => ExecError::Other(format!("load_elf_segment failed: {:?}", e)), in load()
592 return Err(ExecError::BadAddress(Some(e.0))); in load()
635 return Err(ExecError::InvalidParemeter); in load()
696 return Err(ExecError::BadAddress(Some(elf_bss))); in load()