Skip to content

Commit

Permalink
aarch64: define BTI_C and BTI_J macros only if HAVE_AARCH64_BTI
Browse files Browse the repository at this point in the history
  • Loading branch information
NaohiroTamura committed Apr 27, 2021
1 parent fca2c1c commit c582917
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 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. */
#if HAVE_AARCH64_BTI
#define BTI_C hint 34
#define BTI_J hint 36
#else
#define BTI_C
#define BTI_J
#endif

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

0 comments on commit c582917

Please sign in to comment.