Blame patches/libnettle-3.4.local.patch

Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/aes-decrypt-internal.asm nettle-3.4/x86_64/aes-decrypt-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/aes-decrypt-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/aes-decrypt-internal.asm	2018-12-09 00:59:03.342536520 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -150,3 +150,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(6, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_aes_decrypt)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_aes_decrypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_aes_decrypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_aes_decrypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_aes_decrypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/aes-encrypt-internal.asm nettle-3.4/x86_64/aes-encrypt-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/aes-encrypt-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/aes-encrypt-internal.asm	2018-12-09 01:10:55.642444822 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -151,3 +151,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(6, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_aes_encrypt)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_aes_encrypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_aes_encrypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_aes_encrypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_aes_encrypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/camellia-crypt-internal.asm nettle-3.4/x86_64/camellia-crypt-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/camellia-crypt-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/camellia-crypt-internal.asm	2018-12-09 01:13:30.453575580 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -200,3 +200,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(6, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_camellia_crypt)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_camellia_crypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_camellia_crypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_camellia_crypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_camellia_crypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/chacha-core-internal.asm nettle-3.4/x86_64/chacha-core-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/chacha-core-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/chacha-core-internal.asm	2018-12-09 01:13:01.961735270 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -126,3 +126,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(3, 6)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_chacha_core)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_chacha_core,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_chacha_core
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_chacha_core:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_chacha_core
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/gcm-hash8.asm nettle-3.4/x86_64/gcm-hash8.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/gcm-hash8.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/gcm-hash8.asm	2018-12-09 00:57:11.743203210 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -238,3 +238,12 @@
Lucio Andrés Illanes Albornoz 77e5f8
 .value W(a7,d0),W(a6,12),W(a4,54),W(a5,96),W(a0,d8),W(a1,1a),W(a3,5c),W(a2,9e)
Lucio Andrés Illanes Albornoz 77e5f8
 .value W(b5,e0),W(b4,22),W(b6,64),W(b7,a6),W(b2,e8),W(b3,2a),W(b1,6c),W(b0,ae)
Lucio Andrés Illanes Albornoz 77e5f8
 .value W(bb,f0),W(ba,32),W(b8,74),W(b9,b6),W(bc,f8),W(bd,3a),W(bf,7c),W(be,be)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_gcm_hash8,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_gcm_hash8
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_gcm_hash8:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_gcm_hash8
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/md5-compress.asm nettle-3.4/x86_64/md5-compress.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/md5-compress.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/md5-compress.asm	2018-12-09 01:12:32.613899889 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -174,3 +174,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_md5_compress)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_md5_compress,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_md5_compress
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_md5_compress:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_md5_compress
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/memxor3.asm nettle-3.4/x86_64/memxor3.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/memxor3.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/memxor3.asm	2018-12-09 00:56:26.119479101 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -261,3 +261,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	
Lucio Andrés Illanes Albornoz 77e5f8
 
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(nettle_memxor3)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_memxor3,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_memxor3
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_memxor3:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_memxor3
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/memxor.asm nettle-3.4/x86_64/memxor.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/memxor.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/memxor.asm	2018-12-09 00:52:43.592860380 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -171,3 +171,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 >)	
Lucio Andrés Illanes Albornoz 77e5f8
 
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(nettle_memxor)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_memxor,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_memxor
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_memxor:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_memxor
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/poly1305-internal.asm nettle-3.4/x86_64/poly1305-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/poly1305-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/poly1305-internal.asm	2018-12-09 01:11:52.998122306 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -183,3 +183,22 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_poly1305_digest,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_poly1305_digest
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_poly1305_digest:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_poly1305_digest
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_poly1305_block,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_poly1305_block
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_poly1305_block:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_poly1305_block
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_poly1305_set_key,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_poly1305_set_key
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_poly1305_set_key:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_poly1305_set_key
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/salsa20-core-internal.asm nettle-3.4/x86_64/salsa20-core-internal.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/salsa20-core-internal.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/salsa20-core-internal.asm	2018-12-09 01:04:45.096547584 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -109,3 +109,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(3, 9)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_salsa20_core)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_salsa20_core,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_salsa20_core
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_salsa20_core:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_salsa20_core
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/salsa20-crypt.asm nettle-3.4/x86_64/salsa20-crypt.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/salsa20-crypt.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/salsa20-crypt.asm	2018-12-09 01:14:21.785288164 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -245,3 +245,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(nettle_salsa20_crypt)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_salsa20_crypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_salsa20_crypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_salsa20_crypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_salsa20_crypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/serpent-decrypt.asm nettle-3.4/x86_64/serpent-decrypt.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/serpent-decrypt.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/serpent-decrypt.asm	2018-12-09 00:46:23.003436960 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -713,3 +713,12 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	pop	%rbx
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(4, 13)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_serpent_decrypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_serpent_decrypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_serpent_decrypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_serpent_decrypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/serpent-encrypt.asm nettle-3.4/x86_64/serpent-encrypt.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/serpent-encrypt.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/serpent-encrypt.asm	2018-12-09 00:49:36.870081203 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -748,3 +748,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	pop	%rbx
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(4, 13)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_serpent_encrypt,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_serpent_encrypt
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_serpent_encrypt:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_serpent_encrypt
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/sha1-compress.asm nettle-3.4/x86_64/sha1-compress.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/sha1-compress.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/sha1-compress.asm	2018-12-09 00:55:45.891724177 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -305,3 +305,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_sha1_compress)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_sha1_compress,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_sha1_compress
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_sha1_compress:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_sha1_compress
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/sha256-compress.asm nettle-3.4/x86_64/sha256-compress.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/sha256-compress.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/sha256-compress.asm	2018-12-09 00:55:21.963870821 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -208,3 +208,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(3, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_sha256_compress)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_sha256_compress,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_sha256_compress
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_sha256_compress:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_sha256_compress
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/sha3-permute.asm nettle-3.4/x86_64/sha3-permute.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/sha3-permute.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/sha3-permute.asm	2018-12-09 00:51:43.365246810 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -522,3 +522,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	.quad	0x800000000000808A
Lucio Andrés Illanes Albornoz 77e5f8
 	.quad	0x0000000000008082
Lucio Andrés Illanes Albornoz 77e5f8
 	.quad	0x0000000000000001
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$nettle_sha3_permute,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp_nettle_sha3_permute
Lucio Andrés Illanes Albornoz 77e5f8
+__imp_nettle_sha3_permute:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   nettle_sha3_permute
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/sha512-compress.asm nettle-3.4/x86_64/sha512-compress.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/sha512-compress.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/sha512-compress.asm	2018-12-09 00:54:41.276121776 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -208,3 +208,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(3, 0)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_sha512_compress)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_sha512_compress,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_sha512_compress
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_sha512_compress:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_sha512_compress
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/umac-nh.asm nettle-3.4/x86_64/umac-nh.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/umac-nh.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/umac-nh.asm	2018-12-09 00:44:00.460269237 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -79,3 +79,12 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(3, 7)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_umac_nh)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+        .section .got$_nettle_umac_nh,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+        .global __imp__nettle_umac_nh
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_umac_nh:
Lucio Andrés Illanes Albornoz 77e5f8
+        .quad   _nettle_umac_nh
Lucio Andrés Illanes Albornoz 77e5f8
+        .linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
diff -ru nettle-3.4.orig/x86_64/umac-nh-n.asm nettle-3.4/x86_64/umac-nh-n.asm
Lucio Andrés Illanes Albornoz 77e5f8
--- nettle-3.4.orig/x86_64/umac-nh-n.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz 77e5f8
+++ nettle-3.4/x86_64/umac-nh-n.asm	2018-12-09 00:43:15.584499837 +0100
Lucio Andrés Illanes Albornoz 77e5f8
@@ -273,3 +273,11 @@
Lucio Andrés Illanes Albornoz 77e5f8
 	W64_EXIT(5, 14)
Lucio Andrés Illanes Albornoz 77e5f8
 	ret
Lucio Andrés Illanes Albornoz 77e5f8
 EPILOGUE(_nettle_umac_nh_n)
Lucio Andrés Illanes Albornoz 77e5f8
+
Lucio Andrés Illanes Albornoz 77e5f8
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz 77e5f8
+	.section .got$_nettle_umac_nh_n,"r"
Lucio Andrés Illanes Albornoz 77e5f8
+	.global __imp__nettle_umac_nh_n
Lucio Andrés Illanes Albornoz 77e5f8
+__imp__nettle_umac_nh_n:
Lucio Andrés Illanes Albornoz 77e5f8
+	.quad	_nettle_umac_nh_n
Lucio Andrés Illanes Albornoz 77e5f8
+	.linkonce discard
Lucio Andrés Illanes Albornoz 77e5f8
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-192-modp.asm nettle-3.4/x86_64/ecc-192-modp.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-192-modp.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-192-modp.asm	2018-12-09 13:10:41.051992276 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -86,3 +86,11 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_192_modp)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_192_modp,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_192_modp
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_192_modp:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_192_modp
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-224-modp.asm nettle-3.4/x86_64/ecc-224-modp.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-224-modp.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-224-modp.asm	2018-12-09 13:11:17.851656350 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -129,3 +129,11 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_224_modp)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_224_modp,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_224_modp
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_224_modp:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_224_modp
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-25519-modp.asm nettle-3.4/x86_64/ecc-25519-modp.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-25519-modp.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-25519-modp.asm	2018-12-09 13:15:08.285573030 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -92,3 +92,11 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_25519_modp)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_25519_modp,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_25519_modp
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_25519_modp:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_25519_modp
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-25519-modp-mul.asm nettle-3.4/x86_64/ecc-25519-modp-mul.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-25519-modp-mul.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-25519-modp-mul.asm	2018-12-09 13:16:21.236919414 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -266,3 +266,11 @@
Lucio Andrés Illanes Albornoz e05e49
 PROLOGUE(nettle_ecc_25519_modp_sqr)
Lucio Andrés Illanes Albornoz e05e49
 	
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_25519_modp_sqr)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_25519_modp_mul,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_25519_modp_mul
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_25519_modp_mul:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_25519_modp_mul
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-256-redc.asm nettle-3.4/x86_64/ecc-256-redc.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-256-redc.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-256-redc.asm	2018-12-09 13:14:26.629947362 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -127,3 +127,12 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_256_redc)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_256_redc,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_256_redc
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_256_redc:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_256_redc
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-384-modp.asm nettle-3.4/x86_64/ecc-384-modp.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-384-modp.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-384-modp.asm	2018-12-09 13:12:15.711130111 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -232,3 +232,11 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_384_modp)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_384_modp,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_384_modp
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_384_modp:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_384_modp
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif
Lucio Andrés Illanes Albornoz e05e49
diff -ru midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-521-modp.asm nettle-3.4/x86_64/ecc-521-modp.asm
Lucio Andrés Illanes Albornoz e05e49
--- midipix/nt64/debug/tmp/libnettle-native-x86_64-nt64-midipix/nettle-3.4/x86_64/ecc-521-modp.asm	2017-11-19 14:36:47.000000000 +0100
Lucio Andrés Illanes Albornoz e05e49
+++ nettle-3.4/x86_64/ecc-521-modp.asm	2018-12-09 13:12:51.738803584 +0100
Lucio Andrés Illanes Albornoz e05e49
@@ -156,3 +156,11 @@
Lucio Andrés Illanes Albornoz e05e49
 	W64_EXIT(2, 0)
Lucio Andrés Illanes Albornoz e05e49
 	ret
Lucio Andrés Illanes Albornoz e05e49
 EPILOGUE(nettle_ecc_521_modp)
Lucio Andrés Illanes Albornoz e05e49
+
Lucio Andrés Illanes Albornoz e05e49
+#ifdef __midipix__
Lucio Andrés Illanes Albornoz e05e49
+        .section .got$nettle_ecc_521_modp,"r"
Lucio Andrés Illanes Albornoz e05e49
+        .global __imp_nettle_ecc_521_modp
Lucio Andrés Illanes Albornoz e05e49
+__imp_nettle_ecc_521_modp:
Lucio Andrés Illanes Albornoz e05e49
+        .quad   nettle_ecc_521_modp
Lucio Andrés Illanes Albornoz e05e49
+        .linkonce discard
Lucio Andrés Illanes Albornoz e05e49
+#endif