Mailing List Archive

[PATCH] Always include <config.h> in cipher assembly codes
* 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@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: [PATCH] Always include <config.h> in cipher assembly codes [ In reply to ]
Hello,

On 27.4.2021 19.29, H.J. Lu via Gcrypt-devel wrote:
> * 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@gmail.com>

Patch applied. Thanks.

-Jussi

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