From: Andrew Tridgell Date: Tue, 9 Jun 2026 02:04:17 +0000 (+1000) Subject: lib: use .balign in md5 x86-64 asm to fix macOS over-alignment X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdc58b7ccea0448e46255a83c5d9298adbee3096;p=thirdparty%2Frsync.git lib: use .balign in md5 x86-64 asm to fix macOS over-alignment The file used ".align 16" intending 16-byte alignment (GNU/ELF semantics). On macOS the Mach-O assembler reads ".align N" as 2^N, so it requested 64KB alignment for __TEXT,__text, producing: ld: warning: reducing alignment of section __TEXT,__text from 0x10000 to 0x1000 because it exceeds segment maximum alignment The linker clamps it back, so it was harmless, but .balign 16 means 16 bytes on every target and silences the warning. --- diff --git a/lib/md5-asm-x86_64.S b/lib/md5-asm-x86_64.S index 3737058f..b8780c44 100644 --- a/lib/md5-asm-x86_64.S +++ b/lib/md5-asm-x86_64.S @@ -34,7 +34,9 @@ #endif .text -.align 16 +/* .balign = N bytes everywhere; bare .align means 2^N on Mach-O (would ask + * for 64KB alignment and trip a macOS linker warning). */ +.balign 16 .globl md5_process_asm md5_process_asm: