diff options
author | David Carlier <[email protected]> | 2021-03-04 22:12:58 +0000 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2021-03-05 14:33:52 +1300 |
commit | 0ead818d81c975275238878c81f300dd404e0722 (patch) | |
tree | ad3cdac4137f9dbb3575a4f79365e24cfffb3984 /coroutine/x86 | |
parent | 99c339786024d406a77fcf99da00d70ca6aa6534 (diff) |
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).
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4239
Diffstat (limited to 'coroutine/x86')
-rw-r--r-- | coroutine/x86/Context.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coroutine/x86/Context.S b/coroutine/x86/Context.S index 6983f21c3b..f06a417084 100644 --- a/coroutine/x86/Context.S +++ b/coroutine/x86/Context.S @@ -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 |