1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
David Carlier 2021-03-04 22:12:58 +00:00 committed by Samuel Williams
parent 99c3397860
commit 0ead818d81
Notes: git 2021-03-05 10:34:13 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -41,6 +41,6 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# We pop the return address and jump to it
ret
#if defined(__linux__) && defined(__ELF__)
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -37,6 +37,6 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
# Jump to the address on the stack
ret
#if defined(__linux__) && defined(__ELF__)
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif