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

Issue 1027823002: Port Android relocation packer to chromium build (Closed)

Created:
5 years, 9 months ago by simonb (inactive)
Modified:
5 years, 9 months ago
Reviewers:
rmcilroy
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Port Android relocation packer to chromium build - Copy Android relocation packer source from AOSP: bionic/tools/relocation_packer/ - Remove golden test data generation scripts (not needed here) - Add a local ScopedFd.h, to avoid any dependency on base - Add gyp and gn build files for chromium - Update third_party/android_platform/README.chromium BUG=385553 R=rmcilroy@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/418115b3467e12e606e6e48ac3532f583e9f09ac

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update for review feedback. #

Patch Set 3 : Properly tag TODO(GN) #

Patch Set 4 : Really tag TODO(GN) #

Total comments: 2

Patch Set 5 : Fix GN/GYP crossreferences. #

Patch Set 6 : Removed two nugatory files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2516 lines, -263 lines) Patch
A third_party/android_platform/BUILD.gn View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/android_platform/README.chromium View 2 chunks +10 lines, -0 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/Android.mk View 1 1 chunk +96 lines, -0 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/LICENSE View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/debug.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/debug.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/debug_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/delta_encoder.h View 1 1 chunk +132 lines, -0 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/delta_encoder.cc View 1 1 chunk +307 lines, -0 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/delta_encoder_unittest.cc View 1 1 chunk +223 lines, -0 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/elf_file.h View 1 4 chunks +27 lines, -6 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/elf_file.cc View 1 1 chunk +882 lines, -0 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/elf_file_unittest.cc View 1 7 chunks +64 lines, -40 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/elf_traits.h View 1 3 chunks +11 lines, -50 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/leb128.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/leb128.cc View 1 3 chunks +35 lines, -17 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/leb128_unittest.cc View 1 4 chunks +16 lines, -16 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/main.cc View 1 4 chunks +40 lines, -62 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/nativehelper/ScopedFd.h View 1 1 chunk +62 lines, -0 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/packer.h View 1 1 chunk +10 lines, -14 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/packer.cc View 1 1 chunk +88 lines, -0 lines 0 comments Download
A third_party/android_platform/bionic/tools/relocation_packer/src/packer_unittest.cc View 1 1 chunk +292 lines, -0 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/run_all_unittests.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/sleb128.h View 1 3 chunks +7 lines, -5 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/sleb128.cc View 1 5 chunks +54 lines, -18 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/src/sleb128_unittest.cc View 1 2 chunks +29 lines, -29 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32.so View 1 Binary file 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so View 1 Binary file 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64.so View 1 Binary file 0 comments Download
A + third_party/android_platform/bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so View 1 Binary file 0 comments Download
A third_party/android_platform/config.gni View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/android_platform/relocation_packer.gyp View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
simonb (inactive)
5 years, 9 months ago (2015-03-20 16:38:15 UTC) #2
rmcilroy
Didn't look at the actual relocation packer code. The rest looks reasonable but a couple ...
5 years, 9 months ago (2015-03-20 17:38:26 UTC) #3
simonb (inactive)
Thanks. PTAL when ready. https://codereview.chromium.org/1027823002/diff/1/third_party/android_platform/BUILD.gn File third_party/android_platform/BUILD.gn (right): https://codereview.chromium.org/1027823002/diff/1/third_party/android_platform/BUILD.gn#newcode37 third_party/android_platform/BUILD.gn:37: # Note: unit test target ...
5 years, 9 months ago (2015-03-20 18:33:24 UTC) #4
rmcilroy
lgtm, thanks. https://codereview.chromium.org/1027823002/diff/60001/third_party/android_platform/relocation_packer.gyp File third_party/android_platform/relocation_packer.gyp (right): https://codereview.chromium.org/1027823002/diff/60001/third_party/android_platform/relocation_packer.gyp#newcode31 third_party/android_platform/relocation_packer.gyp:31: # GN: //tools/relocation_packer:lib_relocation_packer Should this be //third_party/android_platform/relocation_packer:lib_relocation_packer ...
5 years, 9 months ago (2015-03-24 11:13:19 UTC) #5
simonb (inactive)
https://codereview.chromium.org/1027823002/diff/60001/third_party/android_platform/relocation_packer.gyp File third_party/android_platform/relocation_packer.gyp (right): https://codereview.chromium.org/1027823002/diff/60001/third_party/android_platform/relocation_packer.gyp#newcode31 third_party/android_platform/relocation_packer.gyp:31: # GN: //tools/relocation_packer:lib_relocation_packer On 2015/03/24 11:13:19, rmcilroy wrote: > ...
5 years, 9 months ago (2015-03-24 16:54:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027823002/80001
5 years, 9 months ago (2015-03-24 16:55:26 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/51600)
5 years, 9 months ago (2015-03-24 17:03:24 UTC) #11
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/418115b3467e12e606e6e48ac3532f583e9f09ac Cr-Commit-Position: refs/heads/master@{#322401}
5 years, 9 months ago (2015-03-26 16:49:14 UTC) #12
simonb (inactive)
5 years, 9 months ago (2015-03-26 16:49:39 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
418115b3467e12e606e6e48ac3532f583e9f09ac (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698