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:
Antonin Décimo 2024-01-26 15:23:19 +01:00 committed by Martin Storsjö
parent 7b33798917
commit e0908b58f1

View File

@ -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