svn commit: r340292 - in stable/11: contrib/elftoolchain/readelf sys/sys

Ed Maste emaste at FreeBSD.org
Fri Nov 9 18:01:22 UTC 2018


Author: emaste
Date: Fri Nov  9 18:01:20 2018
New Revision: 340292
URL: https://svnweb.freebsd.org/changeset/base/340292

Log:
  MFC r340076: 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.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/contrib/elftoolchain/readelf/readelf.c
  stable/11/sys/sys/elf_common.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- stable/11/contrib/elftoolchain/readelf/readelf.c	Fri Nov  9 17:59:27 2018	(r340291)
+++ stable/11/contrib/elftoolchain/readelf/readelf.c	Fri Nov  9 18:01:20 2018	(r340292)
@@ -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));
 	}
 }

Modified: stable/11/sys/sys/elf_common.h
==============================================================================
--- stable/11/sys/sys/elf_common.h	Fri Nov  9 17:59:27 2018	(r340291)
+++ stable/11/sys/sys/elf_common.h	Fri Nov  9 18:01:20 2018	(r340292)
@@ -742,6 +742,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. */


More information about the svn-src-stable mailing list