diff options
-rw-r--r-- | media/base/simd/x86inc.asm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/media/base/simd/x86inc.asm b/media/base/simd/x86inc.asm index 5e0ca20..223ea3d 100644 --- a/media/base/simd/x86inc.asm +++ b/media/base/simd/x86inc.asm @@ -950,10 +950,13 @@ AVX_INSTR pfmul, 1, 0 ;============================================================================= %ifdef CHROMIUM -; Always build PIC code on Mac for Chromium. +; Always build PIC code on Mac or Linux for Chromium. %ifdef MACHO %define PIC %endif +%ifdef ELF +%define PIC +%endif ; ; LOAD_SYM %1 (reg), %2 (sym) @@ -962,7 +965,7 @@ AVX_INSTR pfmul, 1, 0 %macro LOAD_SYM 2 -%ifdef MACHO +%ifdef PIC call %%geteip add %1, %2 - $ jmp %%end |