@@ -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,13 +35,11 @@ .section __OBJC, __image_info .long 0, 0 .section __TEXT, __text, regular, pure_instructions _OFForward: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR pushl %ebp movl %esp, %ebp pushl %ebx @@ -83,13 +87,11 @@ popl %ebp jmp _OFMethodNotFound _OFForward_stret: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR pushl %ebp movl %esp, %ebp pushl %ebx