unix: Make stack be non-executable

This PR is to address issue #2812.
This commit is contained in:
Dave Hylands 2017-01-30 20:35:52 -08:00 committed by Paul Sokolovsky
parent 00bd145398
commit aee74a1dae
3 changed files with 9 additions and 0 deletions

View File

@ -257,3 +257,6 @@ nlr_jump:
#endif // !defined(NLR_OS_WINDOWS) #endif // !defined(NLR_OS_WINDOWS)
#endif // defined(__x86_64__) && !MICROPY_NLR_SETJMP #endif // defined(__x86_64__) && !MICROPY_NLR_SETJMP
#if defined(linux)
.section .note.GNU-stack,"",@progbits
#endif

View File

@ -190,3 +190,6 @@ nlr_jump:
#endif #endif
#endif // defined(__i386__) && !MICROPY_NLR_SETJMP #endif // defined(__i386__) && !MICROPY_NLR_SETJMP
#if defined(linux)
.section .note.GNU-stack,"",@progbits
#endif

View File

@ -114,3 +114,6 @@ nlr_jump:
.size nlr_jump, .-nlr_jump .size nlr_jump, .-nlr_jump
#endif // defined(__xtensa__) #endif // defined(__xtensa__)
#if defined(linux)
.section .note.GNU-stack,"",@progbits
#endif