[PATCH 2/4] mpi: Add .note.gnu.property section for Intel CET
H.J. Lu
hjl.tools at gmail.com
Fri Jan 17 18:29:54 CET 2020
When Intel CET is enabled, include <cet.h> in <asm-syntax.h> for
assembly codes to mark Intel CET support.
* mpi/config.links: Include <cet.h> in <asm-syntax.h>.
Signed-off-by: H.J. Lu <hjl.tools at gmail.com>
---
mpi/config.links | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/mpi/config.links b/mpi/config.links
index 3ead4f08..4f43b732 100644
--- a/mpi/config.links
+++ b/mpi/config.links
@@ -382,6 +382,16 @@ if test x"$mpi_cpu_arch" = x ; then
mpi_cpu_arch="unknown"
fi
+# Add .note.gnu.property section for Intel CET in assembler sources
+# when CET is enabled. */
+if test x"$mpi_cpu_arch" = xx86 ; then
+ cat <<EOF >> ./mpi/asm-syntax.h
+
+#if defined(__ASSEMBLER__) && defined(__CET__)
+# include <cet.h>
+#endif
+EOF
+fi
# Make sysdep.h
echo '/* created by config.links - do not edit */' >./mpi/sysdep.h
--
2.24.1
More information about the Gcrypt-devel
mailing list