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
1 file changed
tree: 2a3331817a637f39b822c9f8168d31960e7d00ff
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/