summaryrefslogtreecommitdiffstats
path: root/linux-aarch64
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2015-04-18 14:27:55 -0700
committerKenny Root <kroot@google.com>2015-04-18 14:27:55 -0700
commitd18b6331a1802438e5d37fb2a397ae766dbdeb53 (patch)
tree1607ee5b147735bd30e335970a782ce18b5a52fc /linux-aarch64
parent49977fa7e3048d41518223b704c90f1b82588904 (diff)
downloadexternal_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.zip
external_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.tar.gz
external_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.tar.bz2
Use a different arch feature indicator for clang
Clang doesn't currently understand the ".arch armv8-a+crypto" syntax and instead requires the specification of ".arch_extension" to enable the crypto functionality. Change-Id: Ib7bab562055e7c7925a47030044479ec172d0a34
Diffstat (limited to 'linux-aarch64')
-rw-r--r--linux-aarch64/crypto/aes/aesv8-armx.S5
-rw-r--r--linux-aarch64/crypto/modes/ghashv8-armx.S5
2 files changed, 10 insertions, 0 deletions
diff --git a/linux-aarch64/crypto/aes/aesv8-armx.S b/linux-aarch64/crypto/aes/aesv8-armx.S
index 0a4b1ac..e3d4666 100644
--- a/linux-aarch64/crypto/aes/aesv8-armx.S
+++ b/linux-aarch64/crypto/aes/aesv8-armx.S
@@ -2,7 +2,12 @@
#if __ARM_MAX_ARCH__>=7
.text
+#ifdef __clang__
+.arch armv8-a
+.arch_extension crypto
+#else
.arch armv8-a+crypto
+#endif
.align 5
rcon:
.long 0x01,0x01,0x01,0x01
diff --git a/linux-aarch64/crypto/modes/ghashv8-armx.S b/linux-aarch64/crypto/modes/ghashv8-armx.S
index 1bfb263..2da617f 100644
--- a/linux-aarch64/crypto/modes/ghashv8-armx.S
+++ b/linux-aarch64/crypto/modes/ghashv8-armx.S
@@ -1,7 +1,12 @@
#include "arm_arch.h"
.text
+#ifdef __clang__
+.arch armv8-a
+.arch_extension crypto
+#else
.arch armv8-a+crypto
+#endif
.global gcm_init_v8
.type gcm_init_v8,%function
.align 4