5 extern PIMAGE_TLS_CALLBACK __crt_xl_start__;
\r
7 __attribute__((section(".CRT$XLZZZ")))
\r
9 __declspec(allocate(".CRT$XLZZZ"))
\r
11 PIMAGE_TLS_CALLBACK __crt_xl_end__ = NULL;
\r
13 /* Runs all TLS callbacks registered in the executable
\r
16 void NTAPI _PDCLIB_runTlsCallbacks(void * image, DWORD reason, PVOID pv);
\r
17 void NTAPI _PDCLIB_runTlsCallbacks(void * image, DWORD reason, PVOID pv)
\r
19 PIMAGE_TLS_CALLBACK * pcb = &__crt_xl_start__;
\r
21 while(*pcb) (*(pcb++))(image, reason, pv);
\r
26 #include <_PDCLIB_test.h>
\r
28 /* Tested in tss_get.c */
\r
31 return TEST_RESULTS;
\r