mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Always use Linkage::Import for relocations targeting a static
This commit is contained in:
parent
e64da833c9
commit
bb634f3c88
@ -321,8 +321,7 @@ fn define_all_allocs(
|
||||
// Don't push a `TodoItem::Static` here, as it will cause statics used by
|
||||
// multiple crates to be duplicated between them. It isn't necessary anyway,
|
||||
// as it will get pushed by `codegen_static` when necessary.
|
||||
let linkage = crate::linkage::get_static_ref_linkage(tcx, def_id);
|
||||
data_id_for_static(tcx, module, def_id, linkage)
|
||||
data_id_for_static(tcx, module, def_id, Linkage::Import)
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user