config: Sync with GCC
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 Apr 2018 22:22:13 +0000 (15:22 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 Apr 2018 22:22:13 +0000 (15:22 -0700)
Sync with GCC
2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/22318
* plugins.m4 (AC_PLUGINS): Use dlsym to check if libdl is needed.

2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>

PR target/84148
* cet.m4: Check if target support multi-byte NOPS (SSE).

config/ChangeLog
config/cet.m4
config/plugins.m4

index 721c47e52f8c038ffd3650094432f97a175bfc8f..8a5dcb3a71a1344462dc18a53032d4f54ab83464 100644 (file)
@@ -1,3 +1,16 @@
+2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Sync with GCC
+       2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/22318
+       * plugins.m4 (AC_PLUGINS): Use dlsym to check if libdl is needed.
+
+       2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
+
+       PR target/84148
+       * cet.m4: Check if target support multi-byte NOPS (SSE).
+
 2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-plugin.m4 (GCC_ENABLE_PLUGINS): Remove -q option passed to grep.
index 715f4bded19c311ea4159678cfb5862b06a255b7..23dd1f7d27d3a82eb1a85518d8ef316226918c8c 100644 (file)
@@ -5,15 +5,24 @@ dnl
 AC_DEFUN([GCC_CET_FLAGS],[dnl
 GCC_ENABLE(cet, default, ,[enable Intel CET in target libraries],
           permit yes|no|default)
+AC_MSG_CHECKING([for CET support])
+
 case "$host" in
   i[[34567]]86-*-linux* | x86_64-*-linux*)
     case "$enable_cet" in
       default)
-       # Check if assembler supports CET.
+       # Check if target supports multi-byte NOPs
+       # and if assembler supports CET insn.
        AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM(
          [],
-         [asm ("setssbsy");])],
+         [
+#if !defined(__SSE2__)
+#error target does not support multi-byte NOPs
+#else
+asm ("setssbsy");
+#endif
+         ])],
         [enable_cet=yes],
         [enable_cet=no])
        ;;
@@ -34,5 +43,8 @@ case "$host" in
 esac
 if test x$enable_cet = xyes; then
   $1="-fcf-protection -mcet"
+  AC_MSG_RESULT([yes])
+else
+  AC_MSG_RESULT([no])
 fi
 ])
index 513c690e1b57a9719df558c770ace8553b365ae2..c6acebc1ca4b4e0df8c7c863382e02860f29b9a6 100644 (file)
@@ -16,6 +16,6 @@ AC_DEFUN([AC_PLUGINS],
     [plugins=$maybe_plugins]
   )
   if test "$plugins" = "yes"; then
-    AC_SEARCH_LIBS([dlopen], [dl])
+    AC_SEARCH_LIBS([dlsym], [dl])
   fi
 ])
This page took 0.027517 seconds and 4 git commands to generate.