From 8cecb1bed0864d1254a786e8c162b74e112f751c Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 12 May 2021 22:34:12 +0800 Subject: move out Tls* symbols --- asm/rich4.asm | 8 -------- asm/rich4_crt_mthread.asm | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'asm') 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 -- cgit v1.2.3