DescriptionLinker: 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 #
Messages
Total messages: 10 (4 generated)
|