@@ -21,10 +21,14 @@ .globl objc_msg_lookup_super_stret .section .text .macro GENERATE_LOOKUP name notFound \name: +#ifdef HAVE_ENDBR64 + endbr64 +#endif + testq %rcx, %rcx jz returnNilMethod testb $1, %cl jnz .LtaggedPointer_\name @@ -73,10 +77,14 @@ .endef .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: +#ifdef HAVE_ENDBR64 + endbr64 +#endif + movq %rcx, %r8 movq (%rcx), %rcx testq %rcx, %rcx jz returnNilMethod