@@ -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 @@ -12,10 +12,16 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" + +#ifdef HAVE_CET_H +# include +#else +# define _CET_ENDBR +#endif .globl _OFForward .globl _OFForward_stret .section __TEXT, __cstring, cstring_literals @@ -29,10 +35,12 @@ .section __OBJC, __image_info .long 0, 0 .section __TEXT, __text, regular, pure_instructions _OFForward: + _CET_ENDBR + pushl %ebp movl %esp, %ebp pushl %ebx subl $20, %esp @@ -79,10 +87,12 @@ popl %ebp jmp _OFMethodNotFound _OFForward_stret: + _CET_ENDBR + pushl %ebp movl %esp, %ebp pushl %ebx subl $20, %esp