summaryrefslogtreecommitdiff
path: root/cipher/sm4-aarch64.S
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/sm4-aarch64.S')
-rw-r--r--cipher/sm4-aarch64.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/cipher/sm4-aarch64.S b/cipher/sm4-aarch64.S
index 8d06991b..30a19358 100644
--- a/cipher/sm4-aarch64.S
+++ b/cipher/sm4-aarch64.S
@@ -30,7 +30,7 @@
/* Constants */
-.text
+SECTION_RODATA
.align 4
ELF(.type _gcry_sm4_aarch64_consts,@object)
_gcry_sm4_aarch64_consts:
@@ -84,7 +84,7 @@ ELF(.size _gcry_sm4_aarch64_consts,.-_gcry_sm4_aarch64_consts)
/* Helper macros. */
#define preload_sbox(ptr) \
- GET_LOCAL_POINTER(ptr, .Lsm4_sbox); \
+ GET_DATA_POINTER(ptr, .Lsm4_sbox); \
ld1 {v16.16b-v19.16b}, [ptr], #64; \
ld1 {v20.16b-v23.16b}, [ptr], #64; \
ld1 {v24.16b-v27.16b}, [ptr], #64; \
@@ -111,6 +111,8 @@ ELF(.size _gcry_sm4_aarch64_consts,.-_gcry_sm4_aarch64_consts)
zip2 s3.2d, RTMP3.2d, RTMP1.2d;
+.text
+
.align 3
ELF(.type sm4_aarch64_crypt_blk1_4,%function;)
sm4_aarch64_crypt_blk1_4: