git: e7d2a96f4f9b - stable/14 - arm64: Mark the armv8 crc32c as supporting BTI
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Feb 2024 16:45:33 UTC
The branch stable/14 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=e7d2a96f4f9bf579e5fde5870772a39fb6ffac2a
commit e7d2a96f4f9bf579e5fde5870772a39fb6ffac2a
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-11-14 15:01:58 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-19 13:17:47 +0000
arm64: Mark the armv8 crc32c as supporting BTI
This is built into a test so needs the BTI elf note for the rest of the
test to be built with BTI support enabled.
As the assembly uses the ENTRY macro it already supports BTI, so mark
it as such.
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42595
(cherry picked from commit 25d0310ed881e86cec9ab5cf37dd8471e88ad554)
---
sys/libkern/arm64/crc32c_armv8.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/libkern/arm64/crc32c_armv8.S b/sys/libkern/arm64/crc32c_armv8.S
index 32bf00ee477d..649afff4b711 100644
--- a/sys/libkern/arm64/crc32c_armv8.S
+++ b/sys/libkern/arm64/crc32c_armv8.S
@@ -26,6 +26,8 @@
*/
#include <machine/asm.h>
+#include <sys/elf_common.h>
+
.arch_extension crc
/*
@@ -76,3 +78,5 @@ last_byte:
end:
ret
END(armv8_crc32c)
+
+GNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)