Generating note.GNU-stack section for FreeBSD on x86.
Not enabling for ELF in general as not all platform support it (e.g. NetBSD, implictly stack never executable).
This commit is contained in:
parent
99c3397860
commit
0ead818d81
Notes:
git
2021-03-05 10:34:13 +09:00
@ -41,6 +41,6 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
|
|||||||
# We pop the return address and jump to it
|
# We pop the return address and jump to it
|
||||||
ret
|
ret
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__ELF__)
|
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
|
||||||
.section .note.GNU-stack,"",%progbits
|
.section .note.GNU-stack,"",%progbits
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,6 +37,6 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
|
|||||||
# Jump to the address on the stack
|
# Jump to the address on the stack
|
||||||
ret
|
ret
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__ELF__)
|
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
|
||||||
.section .note.GNU-stack,"",%progbits
|
.section .note.GNU-stack,"",%progbits
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user