Index: libunwind/src/assembly.h =================================================================== --- libunwind/src/assembly.h +++ libunwind/src/assembly.h @@ -43,6 +43,23 @@ .quad 0 SEPARATOR \ .text SEPARATOR \ .Lfunc_begin0: +#elif (defined(__arm64__) || defined(__aarch64__)) && defined(__ARM_FEATURE_BTI_DEFAULT) +#define PPC64_OPD1 \ + .pushsection ".note.gnu.property", "a" SEPARATOR \ + .balign 8 SEPARATOR \ + .long 4 SEPARATOR \ + .long 0x10 SEPARATOR \ + .long 0x5 SEPARATOR \ + .asciz "GNU" SEPARATOR \ + /* GNU_PROPERTY_AARCH64_FEATURE_1_AND */ \ + .long 0xc0000000 SEPARATOR \ + .long 4 SEPARATOR \ + /* GNU_PROPERTY_AARCH64_FEATURE_1_BTI */\ + /* GNU_PROPERTY_AARCH64_FEATURE_1_PAC */\ + .long 3 SEPARATOR \ + .long 0 SEPARATOR \ + .popsection SEPARATOR +#define PPC64_OPD2 hint #34 /* bti c */ #else #define PPC64_OPD1 #define PPC64_OPD2