Reserve FreeBSD ELF feature control bit LA48 to control VA layout on amd64.

Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D25273
This commit is contained in:
Konstantin Belousov 2020-08-23 19:47:27 +00:00
parent 2b313da3bd
commit bc6f027a39
2 changed files with 2 additions and 0 deletions

View File

@ -796,6 +796,7 @@ typedef struct {
#define NT_FREEBSD_FCTL_PROTMAX_DISABLE 0x00000002 #define NT_FREEBSD_FCTL_PROTMAX_DISABLE 0x00000002
#define NT_FREEBSD_FCTL_STKGAP_DISABLE 0x00000004 #define NT_FREEBSD_FCTL_STKGAP_DISABLE 0x00000004
#define NT_FREEBSD_FCTL_WXNEEDED 0x00000008 #define NT_FREEBSD_FCTL_WXNEEDED 0x00000008
#define NT_FREEBSD_FCTL_LA48 0x00000010
/* Values for n_type. Used in core files. */ /* Values for n_type. Used in core files. */
#define NT_PRSTATUS 1 /* Process status. */ #define NT_PRSTATUS 1 /* Process status. */

View File

@ -67,6 +67,7 @@ static struct ControlFeatures featurelist[] = {
"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[] = {