@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2023 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -21,10 +21,14 @@ .globl OFForward_stret .section .text OFForward: OFForward_stret: +#ifdef HAVE_BTI + bti c +#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