summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 11:35:34 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 11:35:34 +0000
commitf33adbc11e0fa0a2bd73b96ee3a3529481eb111d (patch)
treec78a9867fbaca876672ce984d107305458e7aab7 /coroutine
parente64f71f812324d098bed12ed68c2bc1d6e780c90 (diff)
Ensure stack is correctly protected
See https://bugs.ruby-lang.org/issues/15335 for more details. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/amd64/Context.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/coroutine/amd64/Context.S b/coroutine/amd64/Context.S
index 641bd016ab..6193993e03 100644
--- a/coroutine/amd64/Context.S
+++ b/coroutine/amd64/Context.S
@@ -40,3 +40,7 @@ coroutine_transfer:
# We pop the return address and jump to it
ret
+
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif