mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-12-04 15:24:51 +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)
|
# pragma section(".CRT$XLF", long, read)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const PIMAGE_TLS_CALLBACK WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF"))) __xl_f;
|
WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF")))
|
||||||
const PIMAGE_TLS_CALLBACK WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF"))) __xl_f = __dyn_tls_pthread;
|
extern const PIMAGE_TLS_CALLBACK __xl_f;
|
||||||
|
const PIMAGE_TLS_CALLBACK __xl_f = __dyn_tls_pthread;
|
||||||
|
|
||||||
|
|
||||||
#ifdef WINPTHREAD_DBG
|
#ifdef WINPTHREAD_DBG
|
||||||
|
Loading…
Reference in New Issue
Block a user