Fix failure to use shared relro on load from a zip file.
commita6edc5a75e110244ed499da609b34e2b56024560
authorsimonb <simonb@chromium.org>
Fri, 17 Oct 2014 17:39:35 +0000 (17 10:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Oct 2014 17:39:48 +0000 (17 17:39 +0000)
treef859495808c748e0883bfcf6bc26e8f9ac1df929
parent57e4c85b678e003d8790fed9ada30496783b4e6c
Fix failure to use shared relro on load from a zip file.

When loading from a zip file, record the path to the zip file,
rather that the name of the item within the zip file, as being
the name of the loaded library.

Fixes failure to use shared relro, visible in logcat as:
  E/chromium_android_linker(19916): UseSharedRelro: Could not find libchrome.2192.0.so
  W/chromium_android_linker(19916): Could not use shared RELRO section for libchrome.2192.0.so

Note: load from zip file currently supports only a single shared
library within any given zip file.

BUG=390618

Review URL: https://codereview.chromium.org/667443002

Cr-Commit-Position: refs/heads/master@{#300124}
base/android/java/src/org/chromium/base/library_loader/Linker.java