diff options
author | James Zern <jzern@google.com> | 2016-02-17 18:32:57 -0800 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2016-02-17 18:45:40 -0800 |
commit | a4b47b89fd73bcd7f59f94907fef7d43bedd625b (patch) | |
tree | 9c3daa95622e96e1177b4cdf7f6d9deed98faeac /third_party | |
parent | a97c83f7a4b580dc8f7f96b22d135a9e9bd6dd07 (diff) | |
download | libvpx-a4b47b89fd73bcd7f59f94907fef7d43bedd625b.tar.gz |
x86inc.asm: only set visibility for chromium builds
this restores the previous version's behavior avoiding issues with
builds that may split sources on directory boundaries; protected
visibility may work in this case.
Change-Id: Ie759bd96c9ea5b45613f450dffa6e67eb45f5a8b
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/x86inc/README.libvpx | 1 | ||||
-rw-r--r-- | third_party/x86inc/x86inc.asm | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/third_party/x86inc/README.libvpx b/third_party/x86inc/README.libvpx index d0f57163f..8d3cd966d 100644 --- a/third_party/x86inc/README.libvpx +++ b/third_party/x86inc/README.libvpx @@ -17,3 +17,4 @@ Set 'private_extern' visibility for macho targets. Copy PIC 'GLOBAL' macros from x86_abi_support.asm Use .text instead of .rodata on macho to avoid broken tables in PIC mode. Use .text with no alignment for aout +Only use 'hidden' visibility with Chromium diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm index 0694d21af..fc65bd3c8 100644 --- a/third_party/x86inc/x86inc.asm +++ b/third_party/x86inc/x86inc.asm @@ -786,7 +786,14 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae, annotate_function_size %if %1 %xdefine %%FUNCTION_PREFIX private_prefix - %xdefine %%VISIBILITY hidden + ; libvpx explicitly sets visibility in shared object builds. Avoid + ; setting visibility to hidden as it may break builds that split + ; sources on e.g., directory boundaries. + %ifdef CHROMIUM + %xdefine %%VISIBILITY hidden + %else + %xdefine %%VISIBILITY + %endif %else %xdefine %%FUNCTION_PREFIX public_prefix %xdefine %%VISIBILITY |