Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index b31d71b3a..4f60ea686 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -104,10 +104,14 @@ __sigfe_maybe:
pushl %ebx
pushl %edx
movl %fs:4,%ebx # location of bottom of stack
+ addl \$$tls::initialized,%ebx # where we will be looking
+ cmpl %ebx,%esp # stack loc > than tls
+ jge 0f # yep. we don't have a tls.
+ subl \$$tls::initialized,%ebx # where we will be looking
movl $tls::initialized(%ebx),%eax
cmpl \$0xc763173f,%eax # initialized?
je 1f
- popl %edx
+0: popl %edx
popl %ebx
ret