Module Name: src
Committed By: rin
Date: Sat Aug 17 15:18:30 UTC 2024
Modified Files:
src/crypto/external/bsd/openssl/lib/libcrypto: sha.inc
Log Message:
libcrypto: XXX: Disable stack-protector for GCC/m68k 12.4
for sha512_{224,225}_final()
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc
diff -u src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc:1.7 src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc:1.8
--- src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc:1.7 Sat May 6 17:07:23 2023
+++ src/crypto/external/bsd/openssl/lib/libcrypto/sha.inc Sat Aug 17 15:18:30 2024
@@ -1,4 +1,4 @@
-# $NetBSD: sha.inc,v 1.7 2023/05/06 17:07:23 christos Exp $
+# $NetBSD: sha.inc,v 1.8 2024/08/17 15:18:30 rin Exp $
.PATH: ${OPENSSLSRC}/crypto/sha
@@ -23,3 +23,8 @@ SRCS += ${SHA_SRCS}
.for cryptosrc in ${SHA_SRCS}
CPPFLAGS.${cryptosrc} += -I${OPENSSLSRC}/crypto/sha ${SHACPPFLAGS}
.endfor
+
+.if (${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m68000") && \
+ ${HAVE_GCC:U0} == 12
+COPTS.libc-sha2xx.c+= -fno-stack-protector
+.endif