diff options
author | Dave Hylands <dhylands@gmail.com> | 2017-01-30 20:35:52 -0800 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-01 23:03:10 +0300 |
commit | aee74a1dae41e2af771f18dd4d6cdeda3344bc0c (patch) | |
tree | f3e0aae51468cc5efc6ebcbdc2612b36b7710a6b /py | |
parent | 00bd14539823a40cf98cabd826b0585f37732689 (diff) | |
download | micropython-aee74a1dae41e2af771f18dd4d6cdeda3344bc0c.tar.gz micropython-aee74a1dae41e2af771f18dd4d6cdeda3344bc0c.zip |
unix: Make stack be non-executable
This PR is to address issue #2812.
Diffstat (limited to 'py')
-rw-r--r-- | py/nlrx64.S | 3 | ||||
-rw-r--r-- | py/nlrx86.S | 3 | ||||
-rw-r--r-- | py/nlrxtensa.S | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/py/nlrx64.S b/py/nlrx64.S index caea35de2b..fc8b8e3446 100644 --- a/py/nlrx64.S +++ b/py/nlrx64.S @@ -257,3 +257,6 @@ nlr_jump: #endif // !defined(NLR_OS_WINDOWS) #endif // defined(__x86_64__) && !MICROPY_NLR_SETJMP +#if defined(linux) + .section .note.GNU-stack,"",@progbits +#endif diff --git a/py/nlrx86.S b/py/nlrx86.S index 8c538ba176..f1de61e11a 100644 --- a/py/nlrx86.S +++ b/py/nlrx86.S @@ -190,3 +190,6 @@ nlr_jump: #endif #endif // defined(__i386__) && !MICROPY_NLR_SETJMP +#if defined(linux) + .section .note.GNU-stack,"",@progbits +#endif diff --git a/py/nlrxtensa.S b/py/nlrxtensa.S index 289996ccee..73af4832ff 100644 --- a/py/nlrxtensa.S +++ b/py/nlrxtensa.S @@ -114,3 +114,6 @@ nlr_jump: .size nlr_jump, .-nlr_jump #endif // defined(__xtensa__) +#if defined(linux) + .section .note.GNU-stack,"",@progbits +#endif |