Make _rust_extern_with_linkage_* readonly

This commit is contained in:
bjorn3 2020-10-12 12:02:38 +02:00
parent e0002c1892
commit cd2fc77b0e

View File

@ -337,7 +337,7 @@ fn data_id_for_static(
let ref_name = format!("_rust_extern_with_linkage_{}", symbol_name); let ref_name = format!("_rust_extern_with_linkage_{}", symbol_name);
let ref_data_id = module let ref_data_id = module
.declare_data(&ref_name, Linkage::Local, true, false) .declare_data(&ref_name, Linkage::Local, false, false)
.unwrap(); .unwrap();
let mut data_ctx = DataContext::new(); let mut data_ctx = DataContext::new();
data_ctx.set_align(align); data_ctx.set_align(align);