diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-07-24 21:26:28 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-22 13:01:47 -0500 |
commit | 76287e7f0d149f9b060d3169d77d0e95f0f7e1dd (patch) | |
tree | c2391e88a8d75feded2e759db8f9f34c6aca2ed9 /bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch | |
parent | c1710d7753951d0c310e64cba135e3ac624b6eed (diff) | |
download | packages-76287e7f0d149f9b060d3169d77d0e95f0f7e1dd.tar.gz packages-76287e7f0d149f9b060d3169d77d0e95f0f7e1dd.tar.bz2 packages-76287e7f0d149f9b060d3169d77d0e95f0f7e1dd.tar.xz packages-76287e7f0d149f9b060d3169d77d0e95f0f7e1dd.zip |
bootstrap/rust-1.61: New package
Diffstat (limited to 'bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch')
-rw-r--r-- | bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch b/bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch new file mode 100644 index 000000000..f2a2f734c --- /dev/null +++ b/bootstrap/rust-1.61/0007-Link-libssp_nonshared.a-on-all-musl-targets.patch @@ -0,0 +1,31 @@ +From 976ff1e1bbdbb9c0c0a32a6a27238b51e6467f8f Mon Sep 17 00:00:00 2001 +From: Samuel Holland <samuel@sholland.org> +Date: Sun, 3 Nov 2019 17:01:32 -0600 +Subject: [PATCH 07/14] Link libssp_nonshared.a on all musl targets + +--- + compiler/rustc_target/src/spec/linux_musl_base.rs | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/compiler/rustc_target/src/spec/linux_musl_base.rs b/compiler/rustc_target/src/spec/linux_musl_base.rs +index 9931578ba86..a1cece5733c 100644 +--- a/compiler/rustc_target/src/spec/linux_musl_base.rs ++++ b/compiler/rustc_target/src/spec/linux_musl_base.rs +@@ -1,10 +1,13 @@ +-use crate::spec::TargetOptions; ++use crate::spec::{LinkerFlavor, TargetOptions}; + + pub fn opts() -> TargetOptions { + let mut base = super::linux_base::opts(); + + base.env = "musl".into(); + ++ // libssp_nonshared.a is needed for __stack_chk_fail_local when using libc.so ++ base.post_link_args.insert(LinkerFlavor::Gcc, vec!["-lssp_nonshared".into()]); ++ + // These targets statically link libc by default + base.crt_static_default = true; + +-- +2.35.1 + |