static TLS works for the main exe!!

This commit is contained in:
nora 2025-02-09 20:47:51 +01:00
parent 5c284548bd
commit a6de0298f2
7 changed files with 214 additions and 30 deletions

View file

@ -26,5 +26,13 @@ pub extern "stdcall" fn mainCRTStartup() -> u32 {
unsafe { A_THREAD_LOCAL + ANOTHER_THREAD_LOCAL }
}
#[no_mangle]
pub extern "stdcall" fn _tls_index() {}
/*
!!!!!!!!!!!!!!!
THIS IS WRONG. WE ARE NOT CREATING THE TLS DIRECTORY. THAT WOULD BE OUR JOB.
!!!!!!!!!!!!!!
*/
extern "stdcall" {
static _tls_index: usize;
}