mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-12-03 23:05:48 +08:00
winpthreads: Simplify placing a symbol in a section
It is sufficient to specify the section on the symbol declaration. Signed-off-by: Antonin Décimo <antonin@tarides.com> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
7b33798917
commit
e0908b58f1
@ -533,8 +533,9 @@ __dyn_tls_pthread (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
|
||||
# pragma section(".CRT$XLF", long, read)
|
||||
#endif
|
||||
|
||||
extern const PIMAGE_TLS_CALLBACK WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF"))) __xl_f;
|
||||
const PIMAGE_TLS_CALLBACK WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF"))) __xl_f = __dyn_tls_pthread;
|
||||
WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF")))
|
||||
extern const PIMAGE_TLS_CALLBACK __xl_f;
|
||||
const PIMAGE_TLS_CALLBACK __xl_f = __dyn_tls_pthread;
|
||||
|
||||
|
||||
#ifdef WINPTHREAD_DBG
|
||||
|
Loading…
Reference in New Issue
Block a user