Mailing List Archive

[PATCH 1/4] x86: Add .note.gnu.property section for Intel CET
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
codes.

Signed-off-by: H.J. Lu <hjl.tools@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel