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

Issue 2699473002: Reland of Android: Use linker script to hide all non-JNI symbols (Closed)

Created:
3 years, 10 months ago by agrieve
Modified:
3 years, 10 months ago
Reviewers:
engedy, digit1, Torne, brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, android-webview-reviews_chromium.org, agrieve+watch_chromium.org, ynovikov, Jamie Madill, wolenetz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Android: Use linker script to hide all non-JNI symbols The linker script is applied to all shared_library() targets by default, just like the hide_jni one was (but not loadable_module() targets). This reduces the size of libchrome.so by 220kb. Reverted in: https://codereview.chromium.org/2685933002/ Reason for reland: Tested webkit_tests now pass locally. Issue was that libosmesa.so had its symbols hidden. BUG=448386 TBR=brettw Review-Url: https://codereview.chromium.org/2699473002 Cr-Commit-Position: refs/heads/master@{#450734} Committed: https://chromium.googlesource.com/chromium/src/+/e61084f2f942e6203a98bb4f7e505f9d7b679604

Patch Set 1 #

Patch Set 2 : fix loadable_module #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -65 lines) Patch
M android_webview/BUILD.gn View 1 2 chunks +4 lines, -2 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 chunks +3 lines, -2 lines 0 comments Download
D build/android/android_no_jni_exports.lst View 1 chunk +0 lines, -17 lines 0 comments Download
A build/android/android_only_explicit_jni_exports.lst View 1 chunk +13 lines, -0 lines 0 comments Download
A build/android/android_only_jni_exports.lst View 1 chunk +13 lines, -0 lines 0 comments Download
M build/config/BUILDCONFIG.gn View 1 2 chunks +8 lines, -8 lines 0 comments Download
M build/config/android/BUILD.gn View 1 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/android/BUILD.gn View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/cronet/android/BUILD.gn View 1 2 chunks +0 lines, -15 lines 0 comments Download
D components/cronet/android/only_jni_exports.lst View 1 chunk +0 lines, -10 lines 0 comments Download
M gpu/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
M testing/test.gni View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/netty-tcnative/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/android/memconsumer/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (12 generated)
agrieve
Created Reland of Android: Use linker script to hide all non-JNI symbols
3 years, 10 months ago (2017-02-14 20:29:54 UTC) #1
agrieve
On 2017/02/14 20:29:54, agrieve wrote: > Created Reland of Android: Use linker script to hide ...
3 years, 10 months ago (2017-02-14 21:38:29 UTC) #6
Torne
LGTM, seems reasonable
3 years, 10 months ago (2017-02-15 11:10:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2699473002/230001
3 years, 10 months ago (2017-02-15 16:40:20 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 17:21:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:230001) as
https://chromium.googlesource.com/chromium/src/+/e61084f2f942e6203a98bb4f7e50...

Powered by Google App Engine
This is Rietveld 408576698