@@ -12,19 +12,23 @@ * 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 OFForward: -#ifdef HAVE_ENDBR64 - endbr64 -#endif + _CET_ENDBR pushq %rbp movq %rsp, %rbp /* Save all arguments */ @@ -97,13 +101,11 @@ .scl 2 .type 32 .endef OFForward_stret: -#ifdef HAVE_ENDBR64 - endbr64 -#endif + _CET_ENDBR pushq %rbp movq %rsp, %rbp /* Save all arguments */ @@ -178,13 +180,11 @@ .scl 2 .type 32 .endef init: -#ifdef HAVE_ENDBR64 - endbr64 -#endif + _CET_ENDBR leaq module(%rip), %rcx jmp __objc_exec_class .section .ctors, "aw"