зеркало из https://github.com/github/ruby.git
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:
Родитель
99c3397860
Коммит
0ead818d81
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче