@@ -14,22 +14,26 @@ */ #include "config.h" #include "platform.h" + +#ifdef HAVE_CET_H +# include +#else +# define _CET_ENDBR +#endif .globl objc_msg_lookup .globl objc_msg_lookup_stret .globl objc_msg_lookup_super .globl objc_msg_lookup_super_stret .section .text .macro GENERATE_LOOKUP name notFound \name: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR movl 4(%esp), %edx testl %edx, %edx jz .LreturnNilMethod @@ -80,13 +84,11 @@ .size \name, .-\name .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: -#ifdef HAVE_ENDBR32 - endbr32 -#endif + _CET_ENDBR movl 4(%esp), %edx movl (%edx), %eax testl %eax, %eax jz .LreturnNilMethod