aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/scripts/gendef
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/scripts/gendef')
-rwxr-xr-xwinsup/cygwin/scripts/gendef1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/scripts/gendef b/winsup/cygwin/scripts/gendef
index a2f0392..861a240 100755
--- a/winsup/cygwin/scripts/gendef
+++ b/winsup/cygwin/scripts/gendef
@@ -179,6 +179,7 @@ sigdelayed:
movq %rsp,%rbp
pushf
.seh_pushreg %rax # fake, there's no .seh_pushreg for the flags
+ cld # x86_64 ABI requires direction flag cleared
# stack is aligned or unaligned on entry!
# make sure it is aligned from here on
# We could be called from an interrupted thread which doesn't know