summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 23:49:33 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 23:49:33 +0000
commitdc6908ab44c3a3fc78319422410b57d3b7fb6c0c (patch)
tree60361548fd7db4ae2d129d99513b1f0ec1ba01e2 /coroutine
parent20c99b1ff57bd8e55e443faa406c0a344d9be139 (diff)
Ensure x86 stack is fortified, fixed #15335.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/x86/Context.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/coroutine/x86/Context.S b/coroutine/x86/Context.S
index 5fc0cccc24..d6a0a2def7 100644
--- a/coroutine/x86/Context.S
+++ b/coroutine/x86/Context.S
@@ -37,3 +37,7 @@ _coroutine_transfer:
# Jump to the address on the stack
ret
+
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif