Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -846,11 +846,11 @@ ;; aarch64* | arm64*) AC_MSG_CHECKING(for bti) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([], [ - __asm__ __volatile__ ("bti jc"); + __asm__ __volatile__ ("bti c"); ]) ], [ AC_DEFINE(HAVE_BTI, 1, [Whether we have bti]) AC_MSG_RESULT(yes) ], [ Index: src/forwarding/apple-forwarding-arm64.S ================================================================== --- src/forwarding/apple-forwarding-arm64.S +++ src/forwarding/apple-forwarding-arm64.S @@ -32,11 +32,11 @@ .section __TEXT, __text, regular, pure_instructions .align 2 _OFForward: _OFForward_stret: #ifdef HAVE_BTI - bti jc + bti c #endif stp fp, lr, [sp, #-208]! mov fp, sp sub sp, sp, #208 Index: src/forwarding/forwarding-arm64-elf.S ================================================================== --- src/forwarding/forwarding-arm64-elf.S +++ src/forwarding/forwarding-arm64-elf.S @@ -22,11 +22,11 @@ .section .text OFForward: OFForward_stret: #ifdef HAVE_BTI - bti jc + bti c #endif stp fp, lr, [sp, #-208]! mov fp, sp sub sp, sp, #208 Index: src/runtime/lookup-asm/lookup-asm-arm64-elf.S ================================================================== --- src/runtime/lookup-asm/lookup-asm-arm64-elf.S +++ src/runtime/lookup-asm/lookup-asm-arm64-elf.S @@ -24,11 +24,11 @@ .section .text .macro GENERATE_LOOKUP name notFound \name: #ifdef HAVE_BTI - bti jc + bti c #endif cbz x0, returnNilMethod tst x0, #1 @@ -71,11 +71,11 @@ .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: #ifdef HAVE_BTI - bti jc + bti c #endif mov x2, x0 ldr x0, [x0] cbz x0, returnNilMethod