Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: media/base/simd/x86inc.asm

Issue 8046012: Make media/ PIC-clean on 32-bit Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/simd/x86inc.asm
diff --git a/media/base/simd/x86inc.asm b/media/base/simd/x86inc.asm
index 5e0ca20c5f3ee49dab33cce80ebb529d434a43b7..223ea3d98f2aa0bc3a85ece322b297d4422908e1 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698