diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S index 3b763788..4249db51 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S @@ -7,10 +7,16 @@ #include "consts_namespace.h" .text .p2align 5 -.globl _fe51_mul +.private_extern fe51_mul +.private_extern _fe51_mul .globl fe51_mul -_fe51_mul: +.globl _fe51_mul +#ifdef __ELF__ +.type fe51_mul, @function +.type _fe51_mul, @function +#endif fe51_mul: +_fe51_mul: mov %rsp,%r11 and $31,%r11 add $96,%r11 diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S index 9b74ee3e..64ab2b5a 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S @@ -8,6 +8,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern fe51_nsquare +.private_extern _fe51_nsquare .globl fe51_nsquare .globl _fe51_nsquare #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S index c8cf405b..b6128ee3 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S @@ -8,6 +8,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern fe51_pack +.private_extern _fe51_pack .globl fe51_pack .globl _fe51_pack #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S index 0adc44af..abb8fd68 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S @@ -4,6 +4,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern ladder +.private_extern _ladder .globl ladder .globl _ladder #ifdef __ELF__ diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S index 536ac101..7d21687e 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S @@ -4,6 +4,8 @@ #include "consts_namespace.h" .p2align 5 +.private_extern ladder_base +.private_extern _ladder_base .globl ladder_base .globl _ladder_base #ifdef __ELF__