@@ -20,10 +20,14 @@ .globl _OFForward .globl _OFForward_stret .section __TEXT, __text, regular, pure_instructions _OFForward: +#ifdef HAVE_ENDBR64 + endbr64 +#endif + pushq %rbp movq %rsp, %rbp /* Save all arguments */ subq $0xC0, %rsp /* 16-byte alignment */ @@ -103,10 +107,14 @@ popq %rbp jmp _OFMethodNotFound _OFForward_stret: +#ifdef HAVE_ENDBR64 + endbr64 +#endif + pushq %rbp movq %rsp, %rbp /* Save all arguments */ subq $0xC0, %rsp /* 16-byte alignment */ @@ -188,10 +196,14 @@ popq %rbp jmp _OFMethodNotFound_stret init: +#ifdef HAVE_ENDBR64 + endbr64 +#endif + leaq module(%rip), %rdi jmp ___objc_exec_class .section __DATA, __mod_init_func, mod_init_funcs .quad init