summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-12-08 21:21:28 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-12-08 23:37:42 +1300
commit09229c71bcdc82b2e7c3138baa4cb2696b97ec5d (patch)
tree8cf7d374cf34dd9d602c2593f5bf0de72a9f8396 /coroutine
parentaeeaf90b7ee8230425e8c68cb9cfc962b0a186f4 (diff)
Fix "Ruby is not properly fortified on armv7hl".
See <https://bugs.ruby-lang.org/issues/16762> for more details.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3866
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/arm32/Context.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S
index c5338f0b67..1850c4c408 100644
--- a/coroutine/arm32/Context.S
+++ b/coroutine/arm32/Context.S
@@ -27,3 +27,7 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# Restore callee state (8 registers program counter)
pop {r4-r11,pc}
+
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif