Skip to content

Commit

Permalink
aarch64: define BTI_C and BTI_J macros as nop unless HAVE_AARCH64_BTI
Browse files Browse the repository at this point in the history
  • Loading branch information
NaohiroTamura committed May 7, 2021
1 parent 2cb8864 commit 0804fe9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sysdeps/aarch64/sysdep.h
Expand Up @@ -62,8 +62,13 @@ strip_pac (void *p)
#define ASM_SIZE_DIRECTIVE(name) .size name,.-name

/* Branch Target Identitication support. */
#define BTI_C hint 34
#define BTI_J hint 36
#if HAVE_AARCH64_BTI
# define BTI_C hint 34
# define BTI_J hint 36
#else
# define BTI_C nop
# define BTI_J nop
#endif

/* Return address signing support (pac-ret). */
#define PACIASP hint 25
Expand Down

0 comments on commit 0804fe9

Please sign in to comment.