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.85.0+dfsg2-2+rpi1~6^2^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0dc69b4cc9cfdb4cdd5ab88e8603e545b1fdc229;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 e975102e23..9876a4f11b 100644 --- a/compiler/rustc_target/src/spec/base/windows_gnu.rs +++ b/compiler/rustc_target/src/spec/base/windows_gnu.rs @@ -40,6 +40,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);