aboutsummaryrefslogtreecommitdiff
path: root/security/nettle
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2015-01-06 20:54:55 +0000
committerJohan van Selst <johans@FreeBSD.org>2015-01-06 20:54:55 +0000
commit6ff8795f5154b7c7aa23f78bb650e237639e6014 (patch)
tree315b2d04835764d625a68182ee36a8a5a36fee54 /security/nettle
parente503f84aa8e188b7ad137b3036dce1c8d93134d7 (diff)
downloadports-6ff8795f5154b7c7aa23f78bb650e237639e6014.tar.gz
ports-6ff8795f5154b7c7aa23f78bb650e237639e6014.zip
Fix build on arm, by correcting asm code for clang
PR: 196505 Submitted by: sbruno
Notes
Notes: svn path=/head/; revision=376440
Diffstat (limited to 'security/nettle')
-rw-r--r--security/nettle/files/patch-arm__v6__sha256-compress.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/nettle/files/patch-arm__v6__sha256-compress.asm b/security/nettle/files/patch-arm__v6__sha256-compress.asm
new file mode 100644
index 000000000000..fbd06c45c59c
--- /dev/null
+++ b/security/nettle/files/patch-arm__v6__sha256-compress.asm
@@ -0,0 +1,20 @@
+--- arm/v6/sha256-compress.asm.orig 2013-05-28 16:21:54.000000000 +0200
++++ arm/v6/sha256-compress.asm 2015-01-04 00:39:14.000000000 +0100
+@@ -112,7 +112,7 @@ define(<NOEXPN>, <
+ PROLOGUE(_nettle_sha256_compress)
+ push {r4,r5,r6,r7,r8,r10,r11,r14}
+ sub sp, sp, #68
+- str STATE, [sp, +#64]
++ str STATE, [sp, #+64]
+
+ C Load data up front, since we don't have enough registers
+ C to load and shift on-the-fly
+@@ -185,7 +185,7 @@ PROLOGUE(_nettle_sha256_compress)
+ EXPN(15) ROUND(SB,SC,SD,SE,SF,SG,SH,SA)
+ bne .Loop2
+
+- ldr STATE, [sp, +#64]
++ ldr STATE, [sp, #+64]
+ C No longer needed registers
+ ldm STATE, {r1,r2,r12,r14}
+ add SA, SA, r1