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:
authorCorinna Vinschen <corinna@vinschen.de>2013-05-27 23:31:04 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-05-27 23:31:04 +0400
commit27a21b38c03f0fdf5fefc5e81483cfd40480c360 (patch)
treee09789e04d97970343acef5ff8844d4dfdf8055c /winsup/cygwin/gendef
parent7e925d9ac1c056f0c5d05b894009bb2f05413e2f (diff)
* dll_init.cc (dll_list::topsort): Fix early-return condition to
accommodate process with all runtime loaded DLLs already dlclosed at fork time. * gendef (_sigfe_maybe): Fix code handling early return if we don't have a tls, broken on 2013-05-21.
Diffstat (limited to 'winsup/cygwin/gendef')
-rwxr-xr-xwinsup/cygwin/gendef8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/gendef b/winsup/cygwin/gendef
index 37077997b..2bb790588 100755
--- a/winsup/cygwin/gendef
+++ b/winsup/cygwin/gendef
@@ -133,13 +133,13 @@ EOF
_sigfe_maybe: # stack is aligned on entry!
.seh_endprologue
movq %gs:8,%r10 # location of bottom of stack
- addq \$$tls::initialized,%r10 # where we will be looking
- cmpq %r10,%rsp # stack loc > than tls
- ret # yep. we don't have a tls.
- subq \$$tls::initialized,%r10 # where we will be looking
+ leaq $tls::initialized(%r10),%r11 # where we will be looking
+ cmpq %r11,%rsp # stack loc > than tls
+ jge 0f # yep. we don't have a tls.
movl $tls::initialized(%r10),%r11d
cmpl \$0xc763173f,%r11d # initialized?
je 1f
+0: ret
.seh_endproc
.seh_proc _sigfe