On library load failure, retry without shared RELRO.
commit20eb5c542bbae695fe468509bcc10353c83587de
authorsimonb <simonb@chromium.org>
Thu, 11 Sep 2014 15:48:49 +0000 (11 08:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Sep 2014 15:50:48 +0000 (11 15:50 +0000)
tree62f844eba09c0e64485de24906e35a421fdeda36
parent69909ccc9c1163bf4718ebb87ea1be42fef87ae4
On library load failure, retry without shared RELRO.

https://codereview.chromium.org/443393003 introduced code for service
processes that turns off RELRO sharing and retries a library load in
the event of an address clash or other failure to load a library with
shared RELRO.

This change adds the same back off and retry strategy to the libraries
loaded in the main browser process, for cases where low memory devices
aggressively share RELRO as widely as possible.

BUG=411928
TBR=rmcilroy@chromium.org

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

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