summaryrefslogtreecommitdiff
path: root/usr.bin/elfctl
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-03-04 18:21:30 +0000
committerEd Maste <emaste@FreeBSD.org>2020-03-04 18:21:30 +0000
commitd06e23f9d9dd0d5a4c205d7a0e6413c5d998a390 (patch)
tree6938b3519b4ebcc30da1fbbf2ad8770f9eb2dd48 /usr.bin/elfctl
parentac09be5297d44b9359d7cfc111951621394132e3 (diff)
downloadsrc-test-d06e23f9d9dd0d5a4c205d7a0e6413c5d998a390.tar.gz
src-test-d06e23f9d9dd0d5a4c205d7a0e6413c5d998a390.zip
Reserve WXNEEDED ELF feature control flag
This will be used to tag binaries that require W+X mappings, in advance of the ability to prevent W^X in mmap/mprotect. There is still some discussion about the flag's name, but the ABI won't change even if the name does (as kib pointed out in the review). Reviewed by: csjp, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23909
Notes
Notes: svn path=/head/; revision=358631
Diffstat (limited to 'usr.bin/elfctl')
-rw-r--r--usr.bin/elfctl/elfctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c
index 2f8df69c08f1f..bd8bac1280ac7 100644
--- a/usr.bin/elfctl/elfctl.c
+++ b/usr.bin/elfctl/elfctl.c
@@ -66,6 +66,7 @@ static struct ControlFeatures featurelist[] = {
{ "protmax", NT_FREEBSD_FCTL_PROTMAX_DISABLE,
"Disable implicit PROT_MAX" },
{ "stackgap", NT_FREEBSD_FCTL_STKGAP_DISABLE, "Disable stack gap" },
+ { "wxneeded", NT_FREEBSD_FCTL_WXNEEDED, "Requires W+X mappings" },
};
static struct option long_opts[] = {