It is already available through ctx.mach_compile_result and rarely needed.
This crate contains a library that enables Cranelift to emit native object (".o") files, using the object library.