From 5cd0a37e27030c116b0ba503b36a06df523139b0 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 22 Dec 2012 09:31:41 +0000 Subject: [PATCH] Change how we do GOT-relative relocations in objc_msgSend on i386 to make gas happier. --- objc_msgSend.x86-32.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/objc_msgSend.x86-32.S b/objc_msgSend.x86-32.S index f55f8c3..f348adb 100644 --- a/objc_msgSend.x86-32.S +++ b/objc_msgSend.x86-32.S @@ -76,11 +76,9 @@ jmp *%eax -6: # smallObject: +6: # smallObject: push %ebx # Save old %ebx - call __i686.get_pc_thunk.bx - addl $_GLOBAL_OFFSET_TABLE_, %ebx - mov SmallObjectClasses@GOT(%ebx), %eax + leal SmallObjectClasses@GOTOFF(%ebx), %eax mov (%eax), %eax popl %ebx jmp 1b