ports/security/libgcrypt/patches/patch-cipher_sm3-avx-bmi2-amd64_S

21 lines
475 B
Text
Raw Permalink Normal View History

2023-08-16 22:26:55 +00:00
Index: cipher/sm3-avx-bmi2-amd64.S
--- cipher/sm3-avx-bmi2-amd64.S.orig
+++ cipher/sm3-avx-bmi2-amd64.S
@@ -41,7 +41,7 @@
/* Constants */
-.text
+.rodata
.align 16
ELF(.type _gcry_sm3_avx2_consts,@object)
_gcry_sm3_avx2_consts:
@@ -334,6 +334,7 @@ ELF(.size _gcry_sm3_avx2_consts,.-_gcry_sm3_avx2_const
vpxor w0, XTMP4, XTMP1; \
vmovdqa XTMP1, XW_W1W2_ADDR((round), 0);
+.text
/*
* Transform nblks*64 bytes (nblks*16 32-bit words) at DATA.
*