Lines Matching refs:ExecError
31 exec::{BinaryLoader, BinaryLoaderResult, ExecError, ExecLoadMode, ExecParam},
62 ) -> Result<(), ExecError> { in inner_probe_common() argument
65 return Err(ExecError::WrongArchitecture); in inner_probe_common()
74 return Err(ExecError::NotExecutable); in inner_probe_common()
77 return Err(ExecError::NotSupported); in inner_probe_common()
88 ) -> Result<(), ExecError> { in probe_x86_64() argument
91 return Err(ExecError::WrongArchitecture); in probe_x86_64()
101 ) -> Result<(), ExecError> { in probe_riscv() argument
104 return Err(ExecError::WrongArchitecture); in probe_riscv()
123 ) -> Result<(), ExecError> { in set_elf_brk() argument
139 return Err(ExecError::OutOfMemory); in set_elf_brk()
380 ) -> Result<(), ExecError> { in create_auxv() argument
497 fn parse_gnu_property() -> Result<(), ExecError> { in parse_gnu_property()
503 fn probe(&'static self, param: &ExecParam, buf: &[u8]) -> Result<(), ExecError> { in probe() argument
507 let ehdr = Self::parse_ehdr(buf).map_err(|_| ExecError::NotExecutable)?; in probe()
523 ) -> Result<BinaryLoaderResult, ExecError> { in load() argument
525 let ehdr = Self::parse_ehdr(head_buf).map_err(|_| ExecError::NotExecutable)?; in load()
542 .map_err(|_| ExecError::ParseError)? in load()
543 .ok_or(ExecError::ParseError)?; in load()
559 return Err(ExecError::NotExecutable); in load()
569 ExecError::Other(format!( in load()
690 return Err(ExecError::InvalidParemeter); in load()
709 SystemError::EFAULT => ExecError::BadAddress(None), in load()
710 SystemError::ENOMEM => ExecError::OutOfMemory, in load()
711 _ => ExecError::Other(format!("load_elf_segment failed: {:?}", e)), in load()
717 return Err(ExecError::BadAddress(Some(e.0))); in load()
768 return Err(ExecError::InvalidParemeter); in load()
821 return Err(ExecError::BadAddress(Some(elf_bss))); in load()