@@ -14,19 +14,23 @@ */ #include "config.h" #include "platform.h" + +#ifdef HAVE_CET_H +# include +#else +# define _CET_ENDBR +#endif .globl OFForward .globl OFForward_stret .section .text OFForward: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR pushl %ebp movl %esp, %ebp pushl %ebx @@ -88,13 +92,11 @@ jmp *%eax .type OFForward, %function .size OFForward, .-OFForward OFForward_stret: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR pushl %ebp movl %esp, %ebp pushl %ebx @@ -156,13 +158,11 @@ jmp *%eax .type OFForward_stret, %function .size OFForward_stret, .-OFForward_stret .Linit: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR pushl %ebp movl %esp, %ebp pushl %ebx