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

Issue 2797163006: Android: update static initializer checks in resource_sizes.py. (Closed)

Created:
3 years, 8 months ago by estevenson
Modified:
3 years, 8 months ago
Reviewers:
agrieve
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: update static initializer checks in resource_sizes.py. In resource_sizes.py, we check for static initializers using readelf and using dump-static-initializers.py. The latter requires an unstripped .so file. In some 64 bit APKs (i.e. MonochromePublic.apk), a 32 bit binary is also included but since this binary isn't located in the normal location ($OUTDIR/lib.unstripped/), we currently just check the 64 bit binary twice. This also makes |_VerifyBuildIdsMatch()| fail (which was previously added incorrectly in https://codereview.chromium.org/2706243013) since we try to verify the build ids of two different binaries (32 and 64 bit versions). To simplify this, we ignore 32 bit .so files when 64 bit .so file are present since the 32 bit .so files will be checked by other bots. BUG=708942 Review-Url: https://codereview.chromium.org/2797163006 Cr-Commit-Position: refs/heads/master@{#463284} Committed: https://chromium.googlesource.com/chromium/src/+/7ad22b20258b96ac8c6da01059e0eb1b321e56f1

Patch Set 1 #

Patch Set 2 : Update comment #

Patch Set 3 : n -> -n #

Total comments: 1

Patch Set 4 : Use agrieve@ suggestion #2 #

Total comments: 1

Patch Set 5 : Add comment about 64/32 bit si checks #

Patch Set 6 : Add back GetStaticInitializers comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -24 lines) Patch
M build/android/resource_sizes.py View 1 2 3 4 5 3 chunks +24 lines, -24 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
estevenson
ptal Andrew. Is it even worth keeping the dump-static-initializers check since we don't report this ...
3 years, 8 months ago (2017-04-06 18:17:58 UTC) #7
agrieve
On 2017/04/06 18:17:58, estevenson wrote: > ptal Andrew. > > Is it even worth keeping ...
3 years, 8 months ago (2017-04-06 19:26:40 UTC) #8
agrieve
https://codereview.chromium.org/2797163006/diff/40001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/2797163006/diff/40001/build/android/resource_sizes.py#newcode615 build/android/resource_sizes.py:615: check_unstripped, saw_first_so = not saw_first_so, True This will not ...
3 years, 8 months ago (2017-04-06 19:26:47 UTC) #9
estevenson
ptal Andrew. I thought we had added the readelf counting methods for sis for Android ...
3 years, 8 months ago (2017-04-07 18:49:22 UTC) #11
agrieve
lgtm /w nit. Probably a wait-until-monday thing though. https://codereview.chromium.org/2797163006/diff/60001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/2797163006/diff/60001/build/android/resource_sizes.py#newcode600 build/android/resource_sizes.py:600: has_64 ...
3 years, 8 months ago (2017-04-07 19:46:41 UTC) #12
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/2797163006/100001
3 years, 8 months ago (2017-04-10 13:38:07 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 16:14:54 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/7ad22b20258b96ac8c6da01059e0...

Powered by Google App Engine
This is Rietveld 408576698