Extra assertions and fix for SimpleJit.
@@ -361,8 +361,11 @@ impl<'simple_jit_backend> Backend for SimpleJITBackend {
ref data_decls,
ref function_relocs,
ref data_relocs,
+ section: ref datasection,
} = data.description();
+ assert!(datasection.is_none(), "Custom sections not supported");
+
let size = init.size();
let storage = if writable {
self.memory
