Fix mips relocation to use load_bias as intended
Bug: http://b/20658994 Change-Id: I5a15605fe34db359e26d563e13841ae993083c4a (cherry picked from commit 0373d4f47342e0a6f146af9023a146b0b707442b)
This commit is contained in:
parent
53ba663617
commit
e97d519a6b
@ -128,7 +128,7 @@ bool soinfo::relocate(ElfRelIteratorT&& rel_iterator,
|
|||||||
if (s != nullptr) {
|
if (s != nullptr) {
|
||||||
*reinterpret_cast<ElfW(Addr)*>(reloc) += sym_addr;
|
*reinterpret_cast<ElfW(Addr)*>(reloc) += sym_addr;
|
||||||
} else {
|
} else {
|
||||||
*reinterpret_cast<ElfW(Addr)*>(reloc) += base;
|
*reinterpret_cast<ElfW(Addr)*>(reloc) += load_bias;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user