summaryrefslogtreecommitdiffstats
path: root/linker/linker_mips.cpp
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-03-31 11:14:03 -0700
committerDimitry Ivanov <dimitry@google.com>2015-04-06 21:15:43 +0000
commitaae859cc3ca127d890e853cbf12b731e05624a22 (patch)
tree159e996dd6756b99fe70371e99a69ec6040e851b /linker/linker_mips.cpp
parente686df8d839216460f02cf7db6c4e26a13e49afd (diff)
downloadbionic-aae859cc3ca127d890e853cbf12b731e05624a22.zip
bionic-aae859cc3ca127d890e853cbf12b731e05624a22.tar.gz
bionic-aae859cc3ca127d890e853cbf12b731e05624a22.tar.bz2
Add realpath for soinfo
This change adds realpath to soinfo and extends limit on filenames from 128 to PATH_MAX. It also removes soinfo::name field, linker uses dt_soname instead. Bug: http://b/19818481 Bug: https://code.google.com/p/android/issues/detail?id=80336 Change-Id: I9cff4cb5bda3ee2bc74e1bbded9594ea7fbe2a08
Diffstat (limited to 'linker/linker_mips.cpp')
-rw-r--r--linker/linker_mips.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker_mips.cpp b/linker/linker_mips.cpp
index 44d39fd..14f6a1b 100644
--- a/linker/linker_mips.cpp
+++ b/linker/linker_mips.cpp
@@ -64,7 +64,7 @@ bool soinfo::relocate(ElfRelIteratorT&& rel_iterator,
ElfW(Addr) sym_addr = 0;
const char* sym_name = nullptr;
- DEBUG("Processing '%s' relocation at index %zd", this->name, idx);
+ DEBUG("Processing '%s' relocation at index %zd", get_soname(), idx);
if (type == R_GENERIC_NONE) {
continue;
}
@@ -77,7 +77,7 @@ bool soinfo::relocate(ElfRelIteratorT&& rel_iterator,
s = soinfo_do_lookup(this, sym_name, &lsi, global_group,local_group);
if (s == nullptr) {
// mips does not support relocation with weak-undefined symbols
- DL_ERR("cannot locate symbol \"%s\" referenced by \"%s\"...", sym_name, name);
+ DL_ERR("cannot locate symbol \"%s\" referenced by \"%s\"...", sym_name, get_soname());
return false;
} else {
// We got a definition.