@@ -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 @@ -23,10 +23,14 @@ .globl objc_msg_lookup_super_stret .section .text .macro GENERATE_LOOKUP name notFound \name: +#ifdef HAVE_BTI + bti c +#endif + cbz x0, returnNilMethod tst x0, #1 b.ne .LtaggedPointer_\name @@ -66,10 +70,14 @@ .size \name, .-\name .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: +#ifdef HAVE_BTI + bti c +#endif + mov x2, x0 ldr x0, [x0] cbz x0, returnNilMethod ldr x2, [x2, #8]