Rollup merge of #140007 - roblabla:fix-win7, r=ChrisDenton
Disable has_thread_local on i686-win7-windows-msvc On Windows 7 32-bit, the alignment characteristic of the TLS Directory don't appear to be respected by the PE Loader, leading to crashes. As a result, let's disable has_thread_local to make sure TLS goes through the emulation layer. Fixes #138903
This commit is contained in:
commit
67a97bad94
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@ pub(crate) fn target() -> Target {
|
|||
base.cpu = "pentium4".into();
|
||||
base.max_atomic_width = Some(64);
|
||||
base.supported_sanitizers = SanitizerSet::ADDRESS;
|
||||
// On Windows 7 32-bit, the alignment characteristic of the TLS Directory
|
||||
// don't appear to be respected by the PE Loader, leading to crashes. As
|
||||
// a result, let's disable has_thread_local to make sure TLS goes through
|
||||
// the emulation layer.
|
||||
// See https://github.com/rust-lang/rust/issues/138903
|
||||
base.has_thread_local = false;
|
||||
|
||||
base.add_pre_link_args(
|
||||
LinkerFlavor::Msvc(Lld::No),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue