Define NT_FREEBSD_FEATURE_CTL ELF note type
This ELF note will be used to allow binaries to opt out of, or in to, upcoming vulnerability mitigation and other features. Committing the definition and readelf change separately to allow independent MFC. MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
cb3065b222
commit
6957cb73fe
@ -1121,6 +1121,7 @@ note_type_freebsd(unsigned int nt)
|
||||
case 1: return "NT_FREEBSD_ABI_TAG";
|
||||
case 2: return "NT_FREEBSD_NOINIT_TAG";
|
||||
case 3: return "NT_FREEBSD_ARCH_TAG";
|
||||
case 4: return "NT_FREEBSD_FEATURE_CTL";
|
||||
default: return (note_type_unknown(nt));
|
||||
}
|
||||
}
|
||||
|
@ -759,6 +759,7 @@ typedef struct {
|
||||
#define NT_FREEBSD_ABI_TAG 1
|
||||
#define NT_FREEBSD_NOINIT_TAG 2
|
||||
#define NT_FREEBSD_ARCH_TAG 3
|
||||
#define NT_FREEBSD_FEATURE_CTL 4
|
||||
|
||||
/* Values for n_type. Used in core files. */
|
||||
#define NT_PRSTATUS 1 /* Process status. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user