commit | 0373d4f47342e0a6f146af9023a146b0b707442b | [log] [tgz] |
---|---|---|
author | Dmitriy Ivanov <dimitry@google.com> | Wed Apr 29 14:41:06 2015 -0700 |
committer | Dmitriy Ivanov <dimitry@google.com> | Wed Apr 29 14:41:06 2015 -0700 |
tree | bc649cbeb6bdd3d44fb0d3eb0a8cfc55ffed4646 | |
parent | fa6f6496078426fe332a5ae9bba009c98dfabc94 [diff] [blame] |
Fix mips relocation to use load_bias as intended Bug: http://b/20658994 Change-Id: I5a15605fe34db359e26d563e13841ae993083c4a
diff --git a/linker/linker_mips.cpp b/linker/linker_mips.cpp index 0769f82..87b811f 100644 --- a/linker/linker_mips.cpp +++ b/linker/linker_mips.cpp
@@ -128,7 +128,7 @@ if (s != nullptr) { *reinterpret_cast<ElfW(Addr)*>(reloc) += sym_addr; } else { - *reinterpret_cast<ElfW(Addr)*>(reloc) += base; + *reinterpret_cast<ElfW(Addr)*>(reloc) += load_bias; } break; default: