From 688e76ca4200fdd92ae250cdf2a6ab235cd54c70 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Mon, 27 Jul 2026 20:09:33 +0900 Subject: [PATCH] =?UTF-8?q?relibc:=20clarify=20TLSDESC=20unimplemented!=20?= =?UTF-8?q?message=20=E2=80=94=20gate=20already=20excludes=20x86=5F64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cfg(not(any(target_arch = "x86_64", target_arch = "aarch64"))) guard on the do_tlsdesc_reloc arm means this unimplemented!() only fires on riscv64 (32-bit x86 is also excluded, but Red Bear is x86_64-only). The original message said 'riscv64 and x86' which misleadingly suggested x86_64 was affected. Found by the Round 11 audit. Not runtime-impactful (the gate is correct) but the error message now matches reality. --- src/ld_so/dso.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld_so/dso.rs b/src/ld_so/dso.rs index 98d4a0b658..234359da99 100644 --- a/src/ld_so/dso.rs +++ b/src/ld_so/dso.rs @@ -998,7 +998,7 @@ impl DSO { if self.dlopened { #[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))] { - unimplemented!("`TLSDESC` relocations are not yet implemented for riscv64 and x86"); + unimplemented!("`TLSDESC` relocations are not yet implemented for this target"); } let mut tls_index = crate::header::dl_tls::dl_tls_index {