Restrict GNU-stack Note to GNU Assemblers

This commit is contained in:
W. Felix Handte 2022-01-05 16:03:32 -05:00
parent b12edddb37
commit ef1f9e80ff

View File

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