Fix the GOT-relative addressing in 32-bit message sends.

Thanks to Banlu for helping track this down.
main
theraven 13 years ago
parent 8ee95e805a
commit 1a386c9efd

@ -78,6 +78,11 @@
jmp *%eax
6: # smallObject:
push %ebx # Save old %ebx
calll 7f
7:
popl %ebx;
8:
addl $_GLOBAL_OFFSET_TABLE_+(8b-7b), %ebx
leal SmallObjectClasses@GOTOFF(%ebx), %eax
mov (%eax), %eax
popl %ebx

Loading…
Cancel
Save