unix: Make stack be non-executable

This PR is to address issue #2812.
pull/2644/head
Dave Hylands 2017-01-30 20:35:52 -08:00 zatwierdzone przez Paul Sokolovsky
rodzic 00bd145398
commit aee74a1dae
3 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

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

Wyświetl plik

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