Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/controlelf/controlelf.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | struct ControlFeatures { | ||||
const char *desc; | const char *desc; | ||||
}; | }; | ||||
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" }, | |||||
}; | }; | ||||
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 316 Lines • Show Last 20 Lines |