[PATCH] Always include <config.h> in cipher assembly codes

H.J. Lu hjl.tools at gmail.com
Tue Apr 27 18:29:28 CEST 2021


* cipher/poly1305-s390x.S: Always include <config.h>.

When Intel CET is enabled, we need to include <cet.h> in assembly codes
to mark Intel CET support even if it is empty.  We should always include
<config.h> in cipher assembly codes so that they will be marked for
Intel CET support when compiling for x86-64 and i686.

Signed-off-by: H.J. Lu <hjl.tools at gmail.com>
---
 cipher/poly1305-s390x.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/poly1305-s390x.S b/cipher/poly1305-s390x.S
index 844245f6..28bed560 100644
--- a/cipher/poly1305-s390x.S
+++ b/cipher/poly1305-s390x.S
@@ -18,8 +18,8 @@
  * License along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if defined (__s390x__) && __GNUC__ >= 4 && __ARCH__ >= 9
 #include <config.h>
+#if defined (__s390x__) && __GNUC__ >= 4 && __ARCH__ >= 9
 #if defined(HAVE_GCC_INLINE_ASM_S390X)
 
 #include "asm-poly1305-s390x.h"
-- 
2.31.1




More information about the Gcrypt-devel mailing list