git: b9dee1dca2d7 - main - zfs: unbreak aarch64 build with non-gcc compilers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Apr 2024 04:44:45 UTC
The branch main has been updated by mm:
URL: https://cgit.FreeBSD.org/src/commit/?id=b9dee1dca2d74e12e867fd29d2d584fc385078eb
commit b9dee1dca2d74e12e867fd29d2d584fc385078eb
Author: Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-04-16 23:34:25 +0000
Commit: Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-04-17 04:44:12 +0000
zfs: unbreak aarch64 build with non-gcc compilers
Workaround until a permanent fix comes from vendor
---
sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S | 4 ++--
sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S b/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S
index e66bb4bc7f26..b0af629066ea 100644
--- a/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S
+++ b/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse2.S
@@ -34,7 +34,7 @@
#if defined(__aarch64__)
/* make gcc <= 9 happy */
-#if LD_VERSION >= 233010000
+#if !defined(LD_VERSION) || LD_VERSION >= 233010000
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
#else
#define CFI_NEGATE_RA_STATE
@@ -2066,4 +2066,4 @@ zfs_blake3_hash_many_sse2:
.size zfs_blake3_hash_many_sse2, .Lfunc_end3-zfs_blake3_hash_many_sse2
.cfi_endproc
.section ".note.GNU-stack","",@progbits
-#endif
\ No newline at end of file
+#endif
diff --git a/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S b/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S
index b9fb28dfcf03..0b719761dd4c 100644
--- a/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S
+++ b/sys/contrib/openzfs/module/icp/asm-aarch64/blake3/b3_aarch64_sse41.S
@@ -34,7 +34,7 @@
#if defined(__aarch64__)
/* make gcc <= 9 happy */
-#if LD_VERSION >= 233010000
+#if !defined(LD_VERSION) || LD_VERSION >= 233010000
#define CFI_NEGATE_RA_STATE .cfi_negate_ra_state
#else
#define CFI_NEGATE_RA_STATE
@@ -2403,4 +2403,4 @@ zfs_blake3_hash_many_sse41:
.size zfs_blake3_hash_many_sse41, .Lfunc_end3-zfs_blake3_hash_many_sse41
.cfi_endproc
.section ".note.GNU-stack","",@progbits
-#endif
\ No newline at end of file
+#endif