git: de4ca58e2c2a - stable/13 - 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:06 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=de4ca58e2c2ab260e0842bd6c233201a5caf55f2
commit de4ca58e2c2ab260e0842bd6c233201a5caf55f2
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-11-14 15:01:58 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-02-19 12:44:42 +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)