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

Issue 7655050: Define PRIVATE and add it to all global symbols so we don't export assembly functions. (Closed)

Created:
9 years, 4 months ago by scherkus (not reviewing)
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Define PRIVATE and add it to all global symbols so we don't export assembly functions. BUG=50811 TEST=build a target w/ libvpx (like remoting_unittests) and observe no vp* symbols are global exported Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97356

Patch Set 1 #

Patch Set 2 : added patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1555 lines, -139 lines) Patch
A libvpx/patches/ugly/02_private_symbols.patch View 1 1 chunk +1394 lines, -0 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/idctllm_mmx.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/idctllm_sse2.asm View 4 chunks +4 lines, -4 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/iwalsh_mmx.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/iwalsh_sse2.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/loopfilter_mmx.asm View 6 chunks +6 lines, -6 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/loopfilter_sse2.asm View 10 chunks +10 lines, -10 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/postproc_mmx.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/postproc_sse2.asm View 4 chunks +4 lines, -4 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/recon_mmx.asm View 4 chunks +4 lines, -4 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/recon_sse2.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/subpixel_mmx.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/subpixel_sse2.asm View 10 chunks +10 lines, -10 lines 0 comments Download
M libvpx/source/libvpx/vp8/common/x86/subpixel_ssse3.asm View 8 chunks +8 lines, -8 lines 0 comments Download
M libvpx/source/libvpx/vp8/decoder/x86/dequantize_mmx.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/dct_mmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/dct_sse2.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/encodeopt.asm View 6 chunks +6 lines, -6 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/fwalsh_sse2.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/quantize_mmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/quantize_sse2.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/quantize_ssse3.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/sad_mmx.asm View 1 chunk +5 lines, -5 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/sad_sse2.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/sad_sse3.asm View 11 chunks +11 lines, -11 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/sad_sse4.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/sad_ssse3.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/ssim_opt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/subtract_mmx.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/subtract_sse2.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/temporal_filter_apply_sse2.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/variance_impl_mmx.asm View 7 chunks +7 lines, -7 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/variance_impl_sse2.asm View 11 chunks +11 lines, -11 lines 0 comments Download
M libvpx/source/libvpx/vp8/encoder/x86/variance_impl_ssse3.asm View 1 chunk +1 line, -1 line 0 comments Download
M libvpx/source/libvpx/vpx_ports/emms.asm View 2 chunks +3 lines, -3 lines 0 comments Download
M libvpx/source/libvpx/vpx_ports/x86_abi_support.asm View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scherkus (not reviewing)
9 years, 4 months ago (2011-08-18 20:12:35 UTC) #1
scherkus (not reviewing)
FYI this is based off the previous bali release while tom works on prepping cayuga
9 years, 4 months ago (2011-08-18 20:13:05 UTC) #2
jkoleszar
LGTM
9 years, 4 months ago (2011-08-18 20:36:24 UTC) #3
Alpha Left Google
On 2011/08/18 20:36:24, jkoleszar wrote: > LGTM Should this be upstreamed or already applied to ...
9 years, 4 months ago (2011-08-19 10:32:02 UTC) #4
jkoleszar
On 2011/08/19 10:32:02, Alpha wrote: > On 2011/08/18 20:36:24, jkoleszar wrote: > > LGTM > ...
9 years, 4 months ago (2011-08-19 12:54:25 UTC) #5
scherkus (not reviewing)
9 years, 4 months ago (2011-08-19 19:54:16 UTC) #6
On 2011/08/19 12:54:25, jkoleszar wrote:
> On 2011/08/19 10:32:02, Alpha wrote:
> > On 2011/08/18 20:36:24, jkoleszar wrote:
> > > LGTM
> > 
> > Should this be upstreamed or already applied to cayuga?
> 
> I think this is just a workaround for chromium at this point. When building a
> DSO using the libvpx build system, we have a linker script that controls which
> symbols are exported, so I don't think this is necessary in that case. I guess
> it could be useful in the case where someone wants to take our static lib and
> later link it into a DSO, so it might be worth including it upstream anyway.
But
> I don't think we can accept it until it doesn't rely on a patched yasm and/or
we
> have some way to detect whether yasm supported it so we could include it
> conditionally.

I agree with jkoleszar. Unfortunately it's chromium specific. We can reduce the
chromium-ness is by upstreaming certain parts such as having a macro for
declaring globals which would let chromium just change the definition of said
macro as opposed to annotating each function individually.

Powered by Google App Engine
This is Rietveld 408576698