diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2023-11-14 15:01:58 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2023-11-21 11:25:43 +0000 |
commit | 25d0310ed881e86cec9ab5cf37dd8471e88ad554 (patch) | |
tree | 17408fe4891219e237239ef638abeb0e5b5d25e2 | |
parent | 1b9096cd1d2fce1edb7077aebd3512cc61c54371 (diff) | |
download | src-25d0310ed881e86cec9ab5cf37dd8471e88ad554.tar.gz src-25d0310ed881e86cec9ab5cf37dd8471e88ad554.zip |
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
-rw-r--r-- | sys/libkern/arm64/crc32c_armv8.S | 4 |
1 files changed, 4 insertions, 0 deletions
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) |