new additions to MingW-Runtime
Jonathan Wilson <jonwil-lAQCs9xYd526c6uEtOJ/[email protected]> Wed, 15 Oct 2003 07:00:46 +0800
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
These 2 files are needed for the new win32 Thread Local Storage support being added by me to Binutils and GCC. Basicly, I want some comments on where the best place to put these is and how best to get them included there...
tlssup.c
(text/plain, 387 B)
#include <windows.h>
DWORD _tls_start __attribute__ ((section (".tls"))) = 0;
DWORD _tls_end __attribute__ ((section (".tls$ZZZ"))) = 0;
DWORD _tls_index = 0;
PIMAGE_TLS_CALLBACK __xl_a __attribute__ ((section (".CRT$XLA"))) = 0;
PIMAGE_TLS_CALLBACK __xl_z __attribute__ ((section (".CRT$XLZ"))) = 0;
IMAGE_TLS_DIRECTORY _tls_used = {&_tls_start, &_tls_end, &_tls_index, &__xl_a, 0, 0};
atlssup.s
(text/plain, 120 B)
.file "i386\atlssup.asm"
@comp.id:
@comp.id = 0xe1c83
__tls_array = 0x2c
.globl __tls_array
.text
.data