Restrict GNU-stack Note to GNU Assemblers
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user