summaryrefslogtreecommitdiff
diff options
authorNathan Pratta Teodosio <nathan.teodosio@canonical.com>2025-09-26 10:52:16 +0200
committerNathan Pratta Teodosio <nathan.teodosio@canonical.com>2025-09-26 10:52:16 +0200
commit7ebfbfa4afd65aae327a9d433dd99f1e5586c51d (patch)
tree03ef537e2cc9bdd057db3ca1c3724515aadc497a
parentc16e4b923a977955ba7a185711deab385a0dc6ee (diff)
Undefined symbol __rust_alloc_error_handler_should_panic.
-rw-r--r--patches/rust-undefined-symbols.patch (renamed from patches/rust_no_alloc_shim_is_unstable.patch)5
-rw-r--r--patches/series2
2 files changed, 5 insertions, 2 deletions
diff --git a/patches/rust_no_alloc_shim_is_unstable.patch b/patches/rust-undefined-symbols.patch
index 60011ef..c6e44fb 100644
--- a/patches/rust_no_alloc_shim_is_unstable.patch
+++ b/patches/rust-undefined-symbols.patch
@@ -4,11 +4,14 @@ Forwarded: not-yet
--- a/build/rust/allocator/lib.rs
+++ b/build/rust/allocator/lib.rs
-@@ -90,4 +90,7 @@
+@@ -90,4 +90,10 @@
fn __rust_no_alloc_shim_is_unstable_v2() {}
+ #[rustc_std_internal_symbol]
+ #[linkage = "weak"]
+ fn __rust_no_alloc_shim_is_unstable() {}
++ #[rustc_std_internal_symbol]
++ #[linkage = "weak"]
++ fn __rust_alloc_error_handler_should_panic() {}
// Mangle the symbol name as rustc expects.
#[rustc_std_internal_symbol]
diff --git a/patches/series b/patches/series
index 54abe15..847d4b8 100644
--- a/patches/series
+++ b/patches/series
@@ -25,4 +25,4 @@ no-unknown-warning.patch
rust-mess.patch
default-visibility-arg.patch
adler1.patch
-rust_no_alloc_shim_is_unstable.patch
+rust-undefined-symbols.patch