Write GNU-stack Section on All ELF Architectures

Previously we did this only on Linux, which missed other Unices.
This commit is contained in:
W. Felix Handte 2022-01-05 15:42:58 -05:00
parent 4620ce6a9a
commit b12edddb37

View File

@ -3,7 +3,7 @@
/* Stack marking
* ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
*/
#if defined(__linux__) && defined(__ELF__)
#if defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif