aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 16:31:53 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-15 16:31:53 -0800
commit77180bf1e0339a52dab8666c128e1016d17e55f6 (patch)
tree3ffcd7788c4c744e3daf246021ffd89e593871f6
parentchacha20,poly1305: fix up for win64 (diff)
downloadWireGuard-77180bf1e0339a52dab8666c128e1016d17e55f6.tar.xz
WireGuard-77180bf1e0339a52dab8666c128e1016d17e55f6.zip
poly1305: only export neon symbols when in use
-rw-r--r--src/crypto/zinc/poly1305/poly1305-arm.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crypto/zinc/poly1305/poly1305-arm.pl b/src/crypto/zinc/poly1305/poly1305-arm.pl
index 30a2005..468f41b 100644
--- a/src/crypto/zinc/poly1305/poly1305-arm.pl
+++ b/src/crypto/zinc/poly1305/poly1305-arm.pl
@@ -53,8 +53,6 @@ $code.=<<___;
# define poly1305_init poly1305_init_arm
# define poly1305_blocks poly1305_blocks_arm
# define poly1305_emit poly1305_emit_arm
-.globl poly1305_emit_neon
-.globl poly1305_blocks_neon
#endif
.text
@@ -678,6 +676,9 @@ poly1305_init_neon:
ret @ bx lr
.size poly1305_init_neon,.-poly1305_init_neon
+#ifdef __KERNEL__
+.globl poly1305_blocks_neon
+#endif
.type poly1305_blocks_neon,%function
.align 5
poly1305_blocks_neon:
@@ -1164,6 +1165,9 @@ poly1305_blocks_neon:
ret @ bx lr
.size poly1305_blocks_neon,.-poly1305_blocks_neon
+#ifdef __KERNEL__
+.globl poly1305_emit_neon
+#endif
.type poly1305_emit_neon,%function
.align 5
poly1305_emit_neon: