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

Issue 1471023002: Linker: Do not require JNI_OnLoad in ModernLinker loads. (Closed)

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

Description

Linker: Do not require JNI_OnLoad in ModernLinker loads. LegacyLinker uses the android_crazy_linker to load libraries. The crazy linker calls JNI_OnLoad if present, but does not fail the load if it is not present. Current ModernLinker will fail if the loaded library does not contain JNI_OnLoad. Change ModernLinker to match the crazy linker behaviour here. Ref: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp&l=444 Additionally, fix nearby comment cut-and-paste error. Committed: https://crrev.com/ae60ba7f8a0e7d2cc3dd208219f8b9fa4f66ef1c Cr-Commit-Position: refs/heads/master@{#361633}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -16 lines) Patch
M base/android/linker/modern_linker_jni.cc View 2 chunks +8 lines, -16 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
simonb (inactive)
5 years ago (2015-11-23 18:53:15 UTC) #3
simonb (inactive)
Torne, would you mind doing the honours here? Small and non-controversial change, would be good ...
5 years ago (2015-11-25 11:28:03 UTC) #5
Torne
lgtm
5 years ago (2015-11-25 11:30:31 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471023002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471023002/1
5 years ago (2015-11-25 11:54:20 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-11-25 12:37:50 UTC) #9
commit-bot: I haz the power
5 years ago (2015-11-25 12:38:59 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ae60ba7f8a0e7d2cc3dd208219f8b9fa4f66ef1c
Cr-Commit-Position: refs/heads/master@{#361633}

Powered by Google App Engine
This is Rietveld 408576698