summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2010-06-17 19:33:52 -0700
committerJohn Koleszar <jkoleszar@google.com>2010-06-21 08:19:12 -0400
commit9f814634545d18dbb0114804e525809f382dcba0 (patch)
tree3590470a60dc22316e06632ef9cd21e2e5cece48 /vp8
parent220daa00e0753fb7c2b7346c5557624df9055f21 (diff)
downloadlibvpx-9f814634545d18dbb0114804e525809f382dcba0.tar
libvpx-9f814634545d18dbb0114804e525809f382dcba0.tar.gz
libvpx-9f814634545d18dbb0114804e525809f382dcba0.tar.bz2
libvpx-9f814634545d18dbb0114804e525809f382dcba0.zip
Fix a linker error on x86-64 Linux when not using a version script.
If the version script produced by the libvpx build system is not used when linking a shared library on x86-64 Linux, the constant data in the subpel filters produces R_X86_64_32 relocation errors due to the use of wrt rip addressing instead of wrt rip wrt ..gotpcrel. Instead of adding a new macro for this addressing mode, this patch sets the ELF visibility of these symbols to "hidden", which allows wrt rip addressing to work without a text relocation. This allows building a shared library without using the provided build system or a separate version script. Fixes http://code.google.com/p/webm/issues/detail?id=46 Change-Id: Ie108f9d9a4352e5af46938bf4750d2302c1b2dc2
Diffstat (limited to 'vp8')
-rw-r--r--vp8/common/x86/subpixel_mmx.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/common/x86/subpixel_mmx.asm b/vp8/common/x86/subpixel_mmx.asm
index ba747f7a0..b0008fcdb 100644
--- a/vp8/common/x86/subpixel_mmx.asm
+++ b/vp8/common/x86/subpixel_mmx.asm
@@ -731,7 +731,7 @@ rd:
times 4 dw 0x40
align 16
-global sym(vp8_six_tap_mmx)
+global sym(vp8_six_tap_mmx) HIDDEN_DATA
sym(vp8_six_tap_mmx):
times 8 dw 0
times 8 dw 0
@@ -791,7 +791,7 @@ sym(vp8_six_tap_mmx):
align 16
-global sym(vp8_bilinear_filters_mmx)
+global sym(vp8_bilinear_filters_mmx) HIDDEN_DATA
sym(vp8_bilinear_filters_mmx):
times 8 dw 128
times 8 dw 0