aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-01-31 15:44:49 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-01-31 15:44:49 +0000
commit75fe717698fb52c2f03fadd32c526a62ad774ae0 (patch)
tree5dbc43c2865b9d9c485d95bbdebaa0d2406d2937 /sys/sys
parentca5efb62ee5af78c01703bbb9e794a2a21df5747 (diff)
downloadsrc-75fe717698fb52c2f03fadd32c526a62ad774ae0.tar.gz
src-75fe717698fb52c2f03fadd32c526a62ad774ae0.zip
Reserve a bit in the FreeBSD feature control note for marking the
image as not compatible with ASLR. Requested by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D5603
Notes
Notes: svn path=/head/; revision=343607
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/elf_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 618a5e2e1acb..2d61e953401a 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -762,6 +762,9 @@ typedef struct {
#define NT_FREEBSD_ARCH_TAG 3
#define NT_FREEBSD_FEATURE_CTL 4
+/* NT_FREEBSD_FEATURE_CTL desc[0] bits */
+#define NT_FREEBSD_FCTL_ASLR_DISABLE 0x00000001
+
/* Values for n_type. Used in core files. */
#define NT_PRSTATUS 1 /* Process status. */
#define NT_FPREGSET 2 /* Floating point registers. */