mirror of
https://github.com/Noratrieb/portability.git
synced 2026-01-15 00:05:02 +01:00
static TLS works for the main exe!!
This commit is contained in:
parent
5c284548bd
commit
a6de0298f2
7 changed files with 214 additions and 30 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue