Fix build with xcode4 and simplify GLOBAL.
authorRafael Ávila de Espíndola <rafael.espindola@gmail.com>
Sat, 5 Mar 2011 20:36:40 +0000 (15:36 -0500)
committerRafael Ávila de Espíndola <rafael.espindola@gmail.com>
Sat, 12 Mar 2011 15:45:22 +0000 (10:45 -0500)
Without this change I get link errors in firefox's libxul. It looks
like the linker expect a particular pattern for getting the GOT. This
patch changes webm to use the same pattern used by the compiler.

Change-Id: Iea8c2e134ad45c1dc7d221ff885a8429bfa4e057

vpx_ports/x86_abi_support.asm

index a872b28..be64cd7 100644 (file)
     %macro GET_GOT 1
       push %1
       call %%get_got
-      %%sub_offset:
-      jmp  %%exitGG
       %%get_got:
-      mov  %1, [esp]
-      add %1, fake_got - %%sub_offset
-      ret
-      %%exitGG:
+      pop  %1
       %undef GLOBAL
-      %define GLOBAL(x) x + %1 - fake_got
+      %define GLOBAL(x) x + %1 - %%get_got
       %undef RESTORE_GOT
       %define RESTORE_GOT pop %1
     %endmacro
 %elifidn __OUTPUT_FORMAT__,macho32
 %macro SECTION_RODATA 0
 section .text
-fake_got:
 %endmacro
 %else
 %define SECTION_RODATA section .rodata