Add .type @function to export function names in asm implementations (ELF only)

via NeoRaider@
This commit is contained in:
Frank Denis 2013-12-26 12:14:46 +01:00
parent aec12d00b3
commit 9a88b1ed74

View File

@ -3,10 +3,14 @@
.text .text
.p2align 5 .p2align 5
.globl _crypto_stream_salsa20
.globl crypto_stream_salsa20 .globl crypto_stream_salsa20
_crypto_stream_salsa20: .globl _crypto_stream_salsa20
#ifdef __ELF__
.type crypto_stream_salsa20, @function
.type _crypto_stream_salsa20, @function
#endif
crypto_stream_salsa20: crypto_stream_salsa20:
_crypto_stream_salsa20:
mov %rsp,%r11 mov %rsp,%r11
and $31,%r11 and $31,%r11
add $480,%r11 add $480,%r11
@ -35,10 +39,14 @@ jmp ._start
.text .text
.p2align 5 .p2align 5
.globl _crypto_stream_salsa20_xor
.globl crypto_stream_salsa20_xor .globl crypto_stream_salsa20_xor
_crypto_stream_salsa20_xor: .globl _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:
_crypto_stream_salsa20_xor:
mov %rsp,%r11 mov %rsp,%r11
and $31,%r11 and $31,%r11
add $480,%r11 add $480,%r11