relibc: clarify TLSDESC unimplemented! message — gate already excludes x86_64

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.
This commit is contained in:
Red Bear OS
2026-07-27 20:09:33 +09:00
parent 90168f561e
commit 688e76ca42
+1 -1
View File
@@ -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 {