summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2021-05-12 22:34:12 +0800
committerIru Cai <mytbk920423@gmail.com>2021-05-12 22:34:12 +0800
commit8cecb1bed0864d1254a786e8c162b74e112f751c (patch)
tree16f972f0961820c03301d7bf61c51eafb12d4da8
parentac6a16620ace0a5b70e697eb6fce42806eb33a84 (diff)
downloadrich4-8cecb1bed0864d1254a786e8c162b74e112f751c.tar.xz
move out Tls* symbols
-rw-r--r--asm/rich4.asm8
-rw-r--r--asm/rich4_crt_mthread.asm5
2 files changed, 5 insertions, 8 deletions
diff --git a/asm/rich4.asm b/asm/rich4.asm
index b5f220a..75d78c3 100644
--- a/asm/rich4.asm
+++ b/asm/rich4.asm
@@ -97,10 +97,6 @@ extern __imp__SetFilePointer@16
extern __imp__SetLastError@4
extern __imp__SetStdHandle@8
extern __imp__SetUnhandledExceptionFilter@4
-extern __imp__TlsAlloc@0
-extern __imp__TlsFree@4
-extern __imp__TlsGetValue@4
-extern __imp__TlsSetValue@8
extern __imp__UnhandledExceptionFilter@4
extern __imp__VirtualAlloc@16
extern __imp__VirtualFree@12
@@ -189,7 +185,6 @@ global ref_00499954
global _RWD_osbuild
global _RWD_osmajor
global __ThreadDataSize
-global __TlsIndex
global __fatal_runtime_error
global fcn_0045c585
global ref_0046c97c
@@ -172537,9 +172532,6 @@ dd 0x2168c235
dd 0xc90fdaa2
dd 0x00004001
-__TlsIndex:
-dd 0xffffffff
-
_GetThreadPtr: ; may contain a jump table
dd fcn_004585cd
diff --git a/asm/rich4_crt_mthread.asm b/asm/rich4_crt_mthread.asm
index d432860..75e3937 100644
--- a/asm/rich4_crt_mthread.asm
+++ b/asm/rich4_crt_mthread.asm
@@ -384,3 +384,8 @@ mov dword [ebx + 0xda], eax
loc_0045c8ff:
pop ebx
ret
+
+section .data
+
+__TlsIndex:
+dd 0xffffffff