diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-12-18 23:14:39 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-12-18 23:14:39 +0000 |
commit | 673e2dd652156342009930cf1f7d15623e4a543a (patch) | |
tree | 765f627665335f3c58e4e245461589ddb0063a75 /usr.bin | |
parent | c5354d593df9a5b97b6c4b1d9999915d93c8e103 (diff) | |
download | src-test2-673e2dd652156342009930cf1f7d15623e4a543a.tar.gz src-test2-673e2dd652156342009930cf1f7d15623e4a543a.zip |
Add ELF flag to disable ASLR stack gap.
Also centralize and unify checks to enable ASLR stack gap in a new
helper exec_stackgap().
PR: 239873
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=368772
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/elfctl/elfctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c index 591258fad729..e9b93e697ef7 100644 --- a/usr.bin/elfctl/elfctl.c +++ b/usr.bin/elfctl/elfctl.c @@ -68,6 +68,7 @@ static struct ControlFeatures featurelist[] = { { "stackgap", NT_FREEBSD_FCTL_STKGAP_DISABLE, "Disable stack gap" }, { "wxneeded", NT_FREEBSD_FCTL_WXNEEDED, "Requires W+X mappings" }, { "la48", NT_FREEBSD_FCTL_LA48, "amd64: Limit user VA to 48bit" }, + { "aslrstkgap", NT_FREEBSD_FCTL_ASG_DISABLE, "Disable ASLR stack gap" }, }; static struct option long_opts[] = { |