diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S index 518ee00e..fd79b8f0 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S @@ -5,10 +5,16 @@ #include "fe51_namespace.h" #include "consts_namespace.h" .p2align 5 -.globl _fe51_nsquare + .globl fe51_nsquare -_fe51_nsquare: +.globl _fe51_nsquare +#ifdef __ELF__ +.type fe51_nsquare, @function +.type _fe51_nsquare, @function +#endif fe51_nsquare: +_fe51_nsquare: + mov %rsp,%r11 and $31,%r11 add $64,%r11 diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S index f848327d..e652ace8 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S @@ -5,10 +5,16 @@ #include "fe51_namespace.h" #include "consts_namespace.h" .p2align 5 -.globl _fe51_pack + .globl fe51_pack -_fe51_pack: +.globl _fe51_pack +#ifdef __ELF__ +.type fe51_pack, @function +.type _fe51_pack, @function +#endif fe51_pack: +_fe51_pack: + mov %rsp,%r11 and $31,%r11 add $32,%r11 diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S index c557d174..1f6978b6 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder.S @@ -1,10 +1,16 @@ #include "ladder_namespace.h" #include "consts_namespace.h" .p2align 5 -.globl _ladder + .globl ladder -_ladder: +.globl _ladder +#ifdef __ELF__ +.type ladder, @function +.type _ladder, @function +#endif ladder: +_ladder: + mov %rsp,%r11 and $31,%r11 add $1856,%r11 diff --git a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S index 0b575880..20990ef1 100644 --- a/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S +++ b/src/libsodium/crypto_scalarmult/curve25519/sandy2x/ladder_base.S @@ -1,10 +1,16 @@ #include "ladder_base_namespace.h" #include "consts_namespace.h" .p2align 5 -.globl _ladder_base + .globl ladder_base -_ladder_base: +.globl _ladder_base +#ifdef __ELF__ +.type ladder_base, @function +.type _ladder_base, @function +#endif ladder_base: +_ladder_base: + mov %rsp,%r11 and $31,%r11 add $1568,%r11