Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/elfctl/elfctl.c
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static struct ControlFeatures featurelist[] = { | static struct ControlFeatures featurelist[] = { | ||||
{ "aslr", NT_FREEBSD_FCTL_ASLR_DISABLE, "Disable ASLR" }, | { "aslr", NT_FREEBSD_FCTL_ASLR_DISABLE, "Disable ASLR" }, | ||||
{ "protmax", NT_FREEBSD_FCTL_PROTMAX_DISABLE, | { "protmax", NT_FREEBSD_FCTL_PROTMAX_DISABLE, | ||||
"Disable implicit PROT_MAX" }, | "Disable implicit PROT_MAX" }, | ||||
{ "stackgap", NT_FREEBSD_FCTL_STKGAP_DISABLE, "Disable stack gap" }, | { "stackgap", NT_FREEBSD_FCTL_STKGAP_DISABLE, "Disable stack gap" }, | ||||
{ "wxneeded", NT_FREEBSD_FCTL_WXNEEDED, "Requires W+X mappings" }, | { "wxneeded", NT_FREEBSD_FCTL_WXNEEDED, "Requires W+X mappings" }, | ||||
{ "la48", NT_FREEBSD_FCTL_LA48, "amd64: Limit user VA to 48bit" }, | |||||
}; | }; | ||||
static struct option long_opts[] = { | static struct option long_opts[] = { | ||||
{ "help", no_argument, NULL, 'h' }, | { "help", no_argument, NULL, 'h' }, | ||||
{ NULL, 0, NULL, 0 } | { NULL, 0, NULL, 0 } | ||||
}; | }; | ||||
#if BYTE_ORDER == LITTLE_ENDIAN | #if BYTE_ORDER == LITTLE_ENDIAN | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |