diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-12 12:02:38 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-12 12:04:17 +0200 |
| commit | cd2fc77b0ee166be15c71963b036dfc7a65df63d (patch) | |
| tree | 9e76b051c9f80b8884213dd0c8871b91dfe80fe3 /src | |
| parent | e0002c1892ae1efd420332e6786b96ad86969c98 (diff) | |
| download | rust-cd2fc77b0ee166be15c71963b036dfc7a65df63d.tar.gz rust-cd2fc77b0ee166be15c71963b036dfc7a65df63d.zip | |
Make _rust_extern_with_linkage_* readonly
Diffstat (limited to 'src')
| -rw-r--r-- | src/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs index d6d38a4b3ad..94ecc3096b3 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -337,7 +337,7 @@ fn data_id_for_static( let ref_name = format!("_rust_extern_with_linkage_{}", symbol_name); let ref_data_id = module - .declare_data(&ref_name, Linkage::Local, true, false) + .declare_data(&ref_name, Linkage::Local, false, false) .unwrap(); let mut data_ctx = DataContext::new(); data_ctx.set_align(align); |
