From f33adbc11e0fa0a2bd73b96ee3a3529481eb111d Mon Sep 17 00:00:00 2001 From: samuel Date: Sat, 24 Nov 2018 11:35:34 +0000 Subject: 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 --- coroutine/amd64/Context.S | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3