Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit d0becd0

Browse files
committed
[lucet-runtime-internals] Enable non-executable stack on FreeBSD too
1 parent 3930687 commit d0becd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lucet-runtime/lucet-runtime-internals/src/context/context_asm.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ _lucet_context_activate:
211211
#endif
212212

213213
/* Mark that we don't need executable stack. */
214-
#if defined(__linux__) && defined(__ELF__)
214+
#if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
215215
.section .note.GNU-stack,"",%progbits
216216
#endif

0 commit comments

Comments
 (0)