lib/md5-asm-x86_64.s: fix build with Apple Clang

The Mach-O x86-64 model doesn't seem to support ".type" and
".size" directives in assembly. Add ifdefs that should allow for
the file to build without issues in Apple Clang.
This commit is contained in:
Caleb Xu
2020-06-20 00:12:15 -04:00
committed by Wayne Davison
parent d4764934c3
commit b218de2702

View File

@@ -27,9 +27,14 @@
.text
.align 16
#ifndef __apple_build_version__
.globl md5_process_asm
.type md5_process_asm,@function
md5_process_asm:
#else
.globl _md5_process_asm
_md5_process_asm:
#endif
push %rbp
push %rbx
push %r12
@@ -689,5 +694,9 @@ md5_process_asm:
pop %rbx
pop %rbp
ret
#ifndef __apple_build_version__
.L_md5_process_asm_end:
.size md5_process_asm,.L_md5_process_asm_end-md5_process_asm
#else
L_md5_process_asm_end:
#endif