Write GNU-stack
Section on All ELF Architectures
Previously we did this only on Linux, which missed other Unices.
This commit is contained in:
parent
4620ce6a9a
commit
b12edddb37
@ -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(__linux__) && defined(__ELF__)
|
#if defined(__ELF__)
|
||||||
.section .note.GNU-stack,"",%progbits
|
.section .note.GNU-stack,"",%progbits
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user