fix: Fix fdtbl initialization and synchronization to make relibc tests work

This commit is contained in:
Ibuki Omatsu
2026-07-13 12:13:17 +00:00
committed by Jeremy Soller
parent cbc14a3176
commit c044a70182
2 changed files with 16 additions and 3 deletions
+5
View File
@@ -198,6 +198,11 @@ pub unsafe extern "C" fn relibc_start_v1(
)
};
#[cfg(target_os = "redox")]
{
redox_rt::TLS_ACTIVATED.store(true, core::sync::atomic::Ordering::Relaxed);
}
// Set up the right allocator...
// if any memory rust based memory allocation happen before this step .. we are doomed.
alloc_init();