Enable non-executable stacks by default on RISC-V.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D17878
This commit is contained in:
John Baldwin 2018-11-07 18:32:02 +00:00
parent c5e797a836
commit 4bf4b0f139
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340231

View File

@ -120,7 +120,8 @@ SYSCTL_INT(_debug, OID_AUTO, __elfN(legacy_coredump), CTLFLAG_RW,
int __elfN(nxstack) =
#if defined(__amd64__) || defined(__powerpc64__) /* both 64 and 32 bit */ || \
(defined(__arm__) && __ARM_ARCH >= 7) || defined(__aarch64__)
(defined(__arm__) && __ARM_ARCH >= 7) || defined(__aarch64__) || \
defined(__riscv)
1;
#else
0;