Lines Matching refs:obj
37 use wasmtime_environ::{FlagValue, ObjectKind, OperatorCostStrategy, Tunables, obj};
64 .map_err(obj::ObjectCrateErrorWrapper) in check_compatible()
71 ObjectKind::Module => obj::EF_WASMTIME_MODULE, in check_compatible()
72 ObjectKind::Component => obj::EF_WASMTIME_COMPONENT, in check_compatible()
92 if name == obj::ELF_WASM_ENGINE.as_bytes() { in check_compatible()
97 bail!("failed to find section `{}`", obj::ELF_WASM_ENGINE) in check_compatible()
101 .map_err(obj::ObjectCrateErrorWrapper)?; in check_compatible()
131 pub fn append_compiler_info(engine: &Engine, obj: &mut Object<'_>, metadata: &Metadata<'_>) { in append_compiler_info()
132 let section = obj.add_section( in append_compiler_info()
133 obj.segment_name(StandardSegment::Data).to_vec(), in append_compiler_info()
134 obj::ELF_WASM_ENGINE.as_bytes().to_vec(), in append_compiler_info()
148 obj.set_section_data(section, data, 1); in append_compiler_info()
152 obj: ElfFile64<'data, Endianness, R>, in detect_precompiled()
154 match obj.flags() { in detect_precompiled()
156 os_abi: obj::ELFOSABI_WASMTIME, in detect_precompiled()
159 } if e_flags & obj::EF_WASMTIME_MODULE != 0 => Some(Precompiled::Module), in detect_precompiled()
161 os_abi: obj::ELFOSABI_WASMTIME, in detect_precompiled()
164 } if e_flags & obj::EF_WASMTIME_COMPONENT != 0 => Some(Precompiled::Component), in detect_precompiled()
176 let obj = ElfFile64::parse(&read_cache)?; in detect_precompiled_file() localVariable
177 Ok(detect_precompiled(obj)) in detect_precompiled_file()