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

H.J. Lu hjl.tools at gmail.com
Sun Jan 19 15:40:22 CET 2020


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

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

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([
 AH_BOTTOM([
 #define _GCRYPT_IN_LIBGCRYPT 1
 
+/* Add .note.gnu.property section for Intel CET in assembler sources
+   when CET is enabled.  */
+#if defined(__ASSEMBLER__) && defined(__CET__)
+# include <cet.h>
+#endif
+
 /* 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.  */
 #ifdef DISABLED_ENDIAN_CHECK
-- 
2.24.1




More information about the Gcrypt-devel mailing list