mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-12 08:58:47 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user