From 7ebfbfa4afd65aae327a9d433dd99f1e5586c51d Mon Sep 17 00:00:00 2001 From: Nathan Pratta Teodosio Date: Fri, 26 Sep 2025 10:52:16 +0200 Subject: Undefined symbol __rust_alloc_error_handler_should_panic. --- patches/rust-undefined-symbols.patch | 17 +++++++++++++++++ patches/rust_no_alloc_shim_is_unstable.patch | 14 -------------- patches/series | 2 +- 3 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 patches/rust-undefined-symbols.patch delete mode 100644 patches/rust_no_alloc_shim_is_unstable.patch diff --git a/patches/rust-undefined-symbols.patch b/patches/rust-undefined-symbols.patch new file mode 100644 index 0000000..c6e44fb --- /dev/null +++ b/patches/rust-undefined-symbols.patch @@ -0,0 +1,17 @@ +Description: Define missing symbol from our older rusty world +Author: Nathan Pratta Teodosio +Forwarded: not-yet + +--- a/build/rust/allocator/lib.rs ++++ b/build/rust/allocator/lib.rs +@@ -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/rust_no_alloc_shim_is_unstable.patch b/patches/rust_no_alloc_shim_is_unstable.patch deleted file mode 100644 index 60011ef..0000000 --- a/patches/rust_no_alloc_shim_is_unstable.patch +++ /dev/null @@ -1,14 +0,0 @@ -Description: Define missing symbol from our older rusty world -Author: Nathan Pratta Teodosio -Forwarded: not-yet - ---- a/build/rust/allocator/lib.rs -+++ b/build/rust/allocator/lib.rs -@@ -90,4 +90,7 @@ - fn __rust_no_alloc_shim_is_unstable_v2() {} - -+ #[rustc_std_internal_symbol] -+ #[linkage = "weak"] -+ fn __rust_no_alloc_shim_is_unstable() {} - // 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 -- cgit v1.2.3