summaryrefslogtreecommitdiffstats
path: root/debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch')
-rw-r--r--debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch b/debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch
new file mode 100644
index 000000000..530efcebe
--- /dev/null
+++ b/debian/patches/u-arm-compiler-builtins-weak-linkage-arm.patch
@@ -0,0 +1,23 @@
+From 72c872147679096c53cbb49ca670662d05d43110 Mon Sep 17 00:00:00 2001
+From: Lokathor <zefria@gmail.com>
+Date: Tue, 27 Sep 2022 13:22:45 -0600
+Subject: [PATCH] Update macros.rs
+
+---
+https://github.com/rust-lang/compiler-builtins/pull/495
+
+ src/macros.rs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/vendor/compiler_builtins/src/macros.rs b/vendor/compiler_builtins/src/macros.rs
+index 7d90b7aa..477c2568 100644
+--- a/vendor/compiler_builtins/src/macros.rs
++++ b/vendor/compiler_builtins/src/macros.rs
+@@ -266,6 +266,7 @@ macro_rules! intrinsics {
+ #[cfg(target_arch = "arm")]
+ pub mod $alias {
+ #[cfg_attr(not(feature = "mangled-names"), no_mangle)]
++ #[cfg_attr(all(not(windows), not(target_vendor="apple")), linkage = "weak")]
+ pub extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
+ super::$name($($argname),*)
+ }