@@ -21,10 +21,14 @@ .globl OFForward_stret .section .text OFForward: OFForward_stret: +#ifdef HAVE_BTI + bti jc +#endif + stp fp, lr, [sp, #-208]! mov fp, sp sub sp, sp, #208 /* Save all arguments, x8 and x19 */ @@ -101,10 +105,14 @@ .size OFForward, .-OFForward .type OFForward_stret, %function .size OFForward_stret, .-OFForward_stret init: +#ifdef HAVE_BTI + bti c +#endif + adrp x0, module add x0, x0, :lo12:module b __objc_exec_class .section .init_array, "aw", %init_array