@@ -11,10 +11,12 @@ * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ + +#include "config.h" .globl objc_msg_lookup .globl objc_msg_lookup_super .section .text @@ -27,13 +29,15 @@ lookup: movq (%rsi), %rax movzbl %ah, %ecx movzbl %al, %edx +#ifndef OF_SELUID16 shrl $16, %eax movq (%r8,%rax,8), %r8 +#endif movq (%r8,%rcx,8), %r8 movq (%r8,%rdx,8), %rax testq %rax, %rax jz forward