clang-22 reported missing alignment on MacOS:
ld: warning: arm64 function not 4-byte aligned: _asm_sha1_hmac_aescbc_dec from libcrypto.a(libcrypto-lib-aes-sha1-armv8.o)
ld: warning: arm64 function not 4-byte aligned: _asm_sha256_hmac_aescbc_dec from libcrypto.a(libcrypto-lib-aes-sha256-armv8.o)
Add ".align 4" directives to the affected functions.
Signed-off-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Thu May 28 08:31:59 2026
(Merged from https://github.com/openssl/openssl/pull/31284)
.global asm_sha1_hmac_aescbc_dec
.type asm_sha1_hmac_aescbc_dec,%function
+.align 4
asm_sha1_hmac_aescbc_dec:
AARCH64_VALID_CALL_TARGET
.global asm_sha256_hmac_aescbc_dec
.type asm_sha256_hmac_aescbc_dec,%function
+.align 4
asm_sha256_hmac_aescbc_dec:
AARCH64_VALID_CALL_TARGET
}
}
-close STDOUT or die "error closing STDOUT: $!";
\ No newline at end of file
+close STDOUT or die "error closing STDOUT: $!";