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)
This commit is contained in:
Andrew Turner 2023-11-14 15:01:58 +00:00
parent bce8a0ba15
commit e7d2a96f4f

View file

@ -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)