diff options
author | Peter Collingbourne <pcc@google.com> | 2019-05-17 02:26:29 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-05-17 02:26:29 +0000 |
commit | 8bb97d7781c9e232fe2e83aa4e26dcf3fc08ad76 (patch) | |
tree | ce38788d86d2ece5e952d98b5e8046ede6257213 /linker/linker.cpp | |
parent | b43f0b799365eab49c8f173fd3b6eef664e33e9d (diff) | |
parent | ea11be0cc85cb5355ca7ed4ee8736ea52b72e38d (diff) |
Merge "Add bootstrap directory to bootstrap linker's search path."
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r-- | linker/linker.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp index f68775c19..32dce3805 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1162,6 +1162,13 @@ static int open_library(android_namespace_t* ns, } } +#if !defined(__ANDROID_APEX__) + if (fd == -1) { + std::vector<std::string> bootstrap_paths = { std::string(kSystemLibDir) + "/bootstrap" }; + fd = open_library_on_paths(zip_archive_cache, name, file_offset, bootstrap_paths, realpath); + } +#endif + if (fd == -1) { fd = open_library_on_paths(zip_archive_cache, name, file_offset, ns->get_default_library_paths(), realpath); } |