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

Issue 340523003: Support for unpacked ARM packed relocations. (Closed)

Created:
6 years, 6 months ago by simonb (inactive)
Modified:
6 years, 6 months ago
Reviewers:
simonb1, rmcilroy
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@fork_switch
Project:
chromium
Visibility:
Public.

Description

Support for unpacked ARM packed relocations. Adds support for unpacking and applying R_ARM_RELATIVE relocations previously packed by the relocation_packer tool into the special .android.rel.dyn section. Strategy: If special dynamic tags are present, open the file, read the contents of .android.rel.dyn, LEB128 decode and run length decode, and apply each R_ARM_RELATIVE relocation produced. If special dynamic tags are not present, do nothing. BUG=385553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279393

Patch Set 1 #

Patch Set 2 : Re-upload after rebase. #

Patch Set 3 : Tidy README.chromium #

Total comments: 4

Patch Set 4 : Update for review feedback #

Total comments: 4

Patch Set 5 : Update for more review feedback #

Total comments: 10

Patch Set 6 : Another review update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -0 lines) Patch
M third_party/android_crazy_linker/README.chromium View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h View 1 2 3 4 5 4 chunks +18 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp View 1 2 3 4 5 3 chunks +86 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_shared_library.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp View 1 2 3 4 7 chunks +103 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
simonb1
6 years, 6 months ago (2014-06-17 14:28:46 UTC) #1
rmcilroy
https://codereview.chromium.org/340523003/diff/40001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp File third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp (right): https://codereview.chromium.org/340523003/diff/40001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp#newcode73 third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp:73: #define DT_ANDROID_ARM_REL_SIZE (DT_LOPROC + 1) nit - just move ...
6 years, 6 months ago (2014-06-18 10:56:05 UTC) #2
simonb1
https://codereview.chromium.org/340523003/diff/40001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp File third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp (right): https://codereview.chromium.org/340523003/diff/40001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp#newcode73 third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp:73: #define DT_ANDROID_ARM_REL_SIZE (DT_LOPROC + 1) On 2014/06/18 10:56:05, rmcilroy ...
6 years, 6 months ago (2014-06-18 15:41:28 UTC) #3
rmcilroy
This is looking better IMO - I prefer the separation between reading the file and ...
6 years, 6 months ago (2014-06-19 10:49:44 UTC) #4
simonb (inactive)
Update. Ptal, thanks. https://codereview.chromium.org/340523003/diff/60001/third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp File third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp (right): https://codereview.chromium.org/340523003/diff/60001/third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp#newcode203 third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp:203: delete [] arm_packed_relocs_; On 2014/06/19 10:49:44, ...
6 years, 6 months ago (2014-06-23 14:51:32 UTC) #5
rmcilroy
Couple of nits, and one suggesting for using ScopedBuffer in ElfRelocations, but otherwise lgtm. https://codereview.chromium.org/340523003/diff/80001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h ...
6 years, 6 months ago (2014-06-24 09:47:22 UTC) #6
simonb (inactive)
https://codereview.chromium.org/340523003/diff/80001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h File third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h (right): https://codereview.chromium.org/340523003/diff/80001/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h#newcode55 third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h:55: bool ApplyArmPackedRelocs(Error* error); On 2014/06/24 09:47:22, rmcilroy wrote: > ...
6 years, 6 months ago (2014-06-24 11:43:56 UTC) #7
simonb (inactive)
The CQ bit was checked by simonb@chromium.org
6 years, 6 months ago (2014-06-24 11:49:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonb@chromium.org/340523003/100001
6 years, 6 months ago (2014-06-24 11:49:52 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 13:58:22 UTC) #10
Message was sent while issue was closed.
Change committed as 279393

Powered by Google App Engine
This is Rietveld 408576698