Skip to content

Commit

Permalink
coroutine/arm64/Context.S: Insert bti c as BTI landing pad
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Dec 22, 2023
1 parent d9e5564 commit 3558715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coroutine/arm64/Context.S
Expand Up @@ -28,8 +28,12 @@
PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):

#if defined(__ARM_FEATURE_PAC_DEFAULT) && (__ARM_FEATURE_PAC_DEFAULT != 0)
# paciasp
# paciasp (it also acts as BTI landing pad, so no need to insert BTI also)
hint #25
#elif defined(__ARM_FEATURE_BTI_DEFAULT) && (__ARM_FEATURE_BTI_DEFAULT != 0)
# For the the case PAC is not enabled but BTI is.
# bti c
hint #34
#endif
# Make space on the stack for caller registers
sub sp, sp, 0xb0
Expand Down

0 comments on commit 3558715

Please sign in to comment.