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

Issue 6246098: Add PRIVATE flags to global symbols.... (Closed)

Created:
9 years, 10 months ago by Hironori Bono
Modified:
4 years, 7 months ago
Reviewers:
Mark Mentovai, msarett, fta
CC:
chromium-reviews
Visibility:
Public.

Description

Add PRIVATE flags to global symbols. This change adds the 'private_extern' flags (on Mac) or the 'hidden' flags (on Linux) to the all global symbols in libjpeg-turbo as suggested in <http://codereview.chromium.org/6332003/>;. BUG=none TEST=build Chromium on Mac without any changes to the 'framework.order' file. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73971

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1290 lines, -106 lines) Patch
M third_party/libjpeg_turbo/README.chromium View 1 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/google.patch View 1 1 chunk +1171 lines, -0 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcclrmmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jcclrss2.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jcclrss2-64.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jccolmmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jccolss2.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jccolss2-64.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jcqnt3dn.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqntmmx.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqnts2f.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqnts2f-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqnts2i.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqnts2i-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcqntsse.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcsammmx.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcsamss2.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jcsamss2-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdclrmmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdclrss2.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdclrss2-64.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdcolmmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdcolss2.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdcolss2-64.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdmermmx.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdmerss2.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdmerss2-64.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jdmrgmmx.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdmrgss2.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdmrgss2-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdsammmx.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdsamss2.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jdsamss2-64.asm View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jf3dnflt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfmmxfst.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfmmxint.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfss2fst.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfss2fst-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfss2int.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfss2int-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfsseflt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jfsseflt-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/ji3dnflt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jimmxfst.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jimmxint.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jimmxred.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2flt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2flt-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2fst.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2fst-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2int.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2int-64.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2red.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jiss2red-64.asm View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jisseflt.asm View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libjpeg_turbo/simd/jsimdcpu.asm View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libjpeg_turbo/simd/jsimdext.inc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Hironori Bono
9 years, 10 months ago (2011-02-04 07:57:47 UTC) #1
Mark Mentovai
LGTM
9 years, 10 months ago (2011-02-04 12:55:13 UTC) #2
fta
On 2011/02/04 12:55:13, Mark Mentovai wrote: > LGTM seems to be causing this regression: http://paste.ubuntu.com/564553/
9 years, 10 months ago (2011-02-08 18:49:43 UTC) #3
Hironori Bono
Greetings Fabien, Sorry for your inconvenience. If I recall correctly, your builder uses an older ...
9 years, 10 months ago (2011-02-09 02:09:32 UTC) #4
fta
hi, this build (obviously trunk) is tracking the gyp requested in DEPS, so it is ...
9 years, 10 months ago (2011-02-09 06:25:44 UTC) #5
Hironori Bono
Greetings Fabien, Thank you for your update. Since we can switch back to libjpeg-6b when ...
9 years, 10 months ago (2011-02-09 06:32:39 UTC) #6
msarett
Hi Mark, I've just updated libjpeg_turbo to 1.4.90. https://chromium.googlesource.com/chromium/deps/libjpeg_turbo I think I'll need to reapply ...
4 years, 7 months ago (2016-05-04 17:37:09 UTC) #8
Mark Mentovai
4 years, 7 months ago (2016-05-04 18:28:24 UTC) #9
Message was sent while issue was closed.
LGTM

If you don’t do this, we wind up exposing all of libjpeg_turbo’s symbols from
our main module. We don’t need to do that, since we’re not providing
libjpeg_turbo to anyone but ourselves. It bloats the symbol table and makes
system crash reports look stupid, and everyone starts blaming all of their
crashes on libjpeg_turbo.

The verify_order step ensures that some generic-sounding symbol name (“main”) is
the highest-addressed exported symbol in the module, so that when a crash report
shows up with an offset way out into the module somewhere and the system’s
symbolizer tries to associate a function name with it, it picks “main +
huge_offset” instead of “random_symbol + smaller_offset”. That’s what causes
people to blame their crashes on the wrong thing. We have an “order” file that
lists all of the symbols that we want to export, and puts “main” last, so that’s
what the symbol table will look like, and we won’t have this problem of people
trying to blame weird crashes on unrelated code.

Powered by Google App Engine
This is Rietveld 408576698