git: 2e4b1bef561d - stable/14 - libicp: unbreak for armv6 after recent OpenZFS import
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Oct 2024 19:33:15 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2e4b1bef561d6c5b0ffa64ba2e789cbd60b2fa4e
commit 2e4b1bef561d6c5b0ffa64ba2e789cbd60b2fa4e
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-12-08 23:09:36 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-20 19:16:53 +0000
libicp: unbreak for armv6 after recent OpenZFS import
The following upstream commit:
727497ccdfcc module/icp/asm-arm/sha2: enable non-SIMD asm kernels on armv5/6
does indeed enable sha2 asm for earlier arm CPUs, but since libicp's
Makefile was not updated, this leads to:
ld: error: undefined reference due to --no-allow-shlib-undefined: zfs_sha256_block_armv7
Fix it by compiling sha256-armv7.S and sha512-armv7.S for armv6 too.
Fixes: 3494f7c019fc
(cherry picked from commit fb17dfa0c83cc213400fe7e1ed7a39253a4fcefa)
---
cddl/lib/libicp/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cddl/lib/libicp/Makefile b/cddl/lib/libicp/Makefile
index 2d9bb3c67cb4..085818f2371a 100644
--- a/cddl/lib/libicp/Makefile
+++ b/cddl/lib/libicp/Makefile
@@ -21,7 +21,7 @@ ASM_SOURCES_AS = \
asm-x86_64/blake3/blake3_sse41.S
CFLAGS+= -D__amd64 -D_SYS_STACK_H -UHAVE_AES
-.elif ${MACHINE_ARCH} == "armv7"
+.elif ${MACHINE_ARCH} == "armv6" || ${MACHINE_ARCH} == "armv7"
ASM_SOURCES_C =
ASM_SOURCES_AS = \
asm-arm/sha2/sha256-armv7.S \