From: Debian Rust Maintainers Date: Thu, 14 Jul 2022 11:17:39 +0000 (+0200) Subject: d-rustc-windows-ssp X-Git-Tag: archive/raspbian/1.94.1+dfsg1-1+rpi1~1^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ef45e4cc32f5e46184eddec52ff5dc2487ebf4b8;p=rustc.git d-rustc-windows-ssp Bug: https://github.com/rust-lang/rust/issues/68973 Gbp-Pq: Topic behaviour Gbp-Pq: Name d-rustc-windows-ssp.patch --- diff --git a/compiler/rustc_target/src/spec/base/windows_gnu.rs b/compiler/rustc_target/src/spec/base/windows_gnu.rs index d2fe42b903..50e8a42a7a 100644 --- a/compiler/rustc_target/src/spec/base/windows_gnu.rs +++ b/compiler/rustc_target/src/spec/base/windows_gnu.rs @@ -47,6 +47,8 @@ pub(crate) fn opts() -> TargetOptions { "-lmingwex", "-luser32", "-lkernel32", + "-lssp_nonshared", + "-lssp", ]; let mut late_link_args = TargetOptions::link_args(LinkerFlavor::Gnu(Cc::No, Lld::No), mingw_libs);