On 28/04/2022 10:48, Andrea Corallo via Gcc-patches wrote:
This change add bti instructions at the beginning of arm specific
libgcc hand written assembly routines.
2022-03-31 Andrea Corallo <andrea.cora...@arm.com>
* libgcc/config/arm/crti.S (FUNC_START): Add bti instruction if
necessary.
* libgcc/config/arm/lib1funcs.S (THUMB_FUNC_START, FUNC_START):
Likewise.
+#if defined(__ARM_FEATURE_BTI)
Wouldn't it be better to use __ARM_FEATURE_BTI_DEFAULT? That way we
only get BTI instructions in multilib variants that have asked for BTI.
R.