The JIT build_object routine currently rejects building object files for any big-endian platform. However, most of the object builder code works fine for either byte order, with the exception of a small change in the ObjectBuilderTarget::new routine. This patch adds that change and removes the assert in build_object.
This is the wasmtime-obj crate, which contains an experimental prototype
for writing out native object files, using the wasm ABI defined by
wasmtime-environ.