[PATCH 1/4] x86: Add .note.gnu.property section for Intel CET

H.J. Lu hjl.tools at gmail.com
Fri Jan 17 18:29:53 CET 2020

When Intel CET is enabled, include <cet.h> in <config.h> for assembly
codes to mark Intel CET support.

	* configure.ac: Include <cet.h> in <config.h> for assembly

Signed-off-by: H.J. Lu <hjl.tools at gmail.com>
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4d4fb49a..c3bcd74d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -97,6 +97,12 @@ AH_TOP([
+/* Add .note.gnu.property section for Intel CET in assembler sources
+   when CET is enabled.  */
+#if defined(__ASSEMBLER__) && defined(__CET__)
+# include <cet.h>
 /* If the configure check for endianness has been disabled, get it from
    OS macros.  This is intended for making fat binary builds on OS X.  */

More information about the Gcrypt-devel mailing list