diff options
author | Roland Levillain <rpl@google.com> | 2020-02-12 17:34:20 +0000 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2020-02-12 17:34:20 +0000 |
commit | 57e6b8612a8cd14467b54d21ccbfd65e0b4b61b3 (patch) | |
tree | de8f62201c37f2fe827847a9b10dee95fc2985ec /linker/linker.cpp | |
parent | 260fa1e83834fce266dba2875bf22e6943bafaae (diff) |
Adjust the documentation of `get_ld_config_file_apex_path`.
Test: n/a
Bug: 147987608
Change-Id: I479a63a2fa7e0975db80fcfdda78d2ee154c53cb
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r-- | linker/linker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp index 0acb9c68f..0e682592a 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -3443,7 +3443,9 @@ static std::vector<android_namespace_t*> init_default_namespace_no_config(bool i return namespaces; } -// return /apex/<name>/etc/ld.config.txt from /apex/<name>/bin/* +// Given an `executable_path` starting with "/apex/<name>/bin/, return +// "/linkerconfig/<name>/ld.config.txt" (or "/apex/<name>/etc/ld.config.txt", if +// the former does not exist). static std::string get_ld_config_file_apex_path(const char* executable_path) { std::vector<std::string> paths = android::base::Split(executable_path, "/"); if (paths.size() >= 5 && paths[1] == "apex" && paths[3] == "bin") { |