From 9a88b1ed74a4832dbe33814664055a6cf5e8812e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 26 Dec 2013 12:14:46 +0100 Subject: [PATCH] Add .type @function to export function names in asm implementations (ELF only) via NeoRaider@ --- .../amd64_xmm6/stream_salsa20_amd64_xmm6.S | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S b/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S index c96f7109..940d38ca 100644 --- a/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S +++ b/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.S @@ -3,10 +3,14 @@ .text .p2align 5 +.globl crypto_stream_salsa20 .globl _crypto_stream_salsa20 -.globl crypto_stream_salsa20 -_crypto_stream_salsa20: +#ifdef __ELF__ +.type crypto_stream_salsa20, @function +.type _crypto_stream_salsa20, @function +#endif crypto_stream_salsa20: +_crypto_stream_salsa20: mov %rsp,%r11 and $31,%r11 add $480,%r11 @@ -35,10 +39,14 @@ jmp ._start .text .p2align 5 +.globl crypto_stream_salsa20_xor .globl _crypto_stream_salsa20_xor -.globl crypto_stream_salsa20_xor -_crypto_stream_salsa20_xor: +#ifdef __ELF__ +.type crypto_stream_salsa20_xor, @function +.type _crypto_stream_salsa20_xor, @function +#endif crypto_stream_salsa20_xor: +_crypto_stream_salsa20_xor: mov %rsp,%r11 and $31,%r11 add $480,%r11