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

20 lines
475 B
Text

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.
*