commit | 5e6f47ac5f4c0dd8e5d8bcf7db48066f85685a4d | [log] [tgz] |
---|---|---|
author | simonb <simonb@chromium.org> | Wed Nov 25 21:37:42 2015 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 01:55:27 2020 +0900 |
tree | 2a3331817a637f39b822c9f8168d31960e7d00ff | |
parent | 3413d7fdd6caaae4bd39d018728889219acaacff [diff] |
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. Review URL: https://codereview.chromium.org/1471023002 Cr-Commit-Position: refs/heads/master@{#361633} CrOS-Libchrome-Original-Commit: ae60ba7f8a0e7d2cc3dd208219f8b9fa4f66ef1c