diff options
Diffstat (limited to 'lld/ELF/Target.cpp')
-rw-r--r-- | lld/ELF/Target.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index bb1297c2177..ce272739f8d 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1920,8 +1920,7 @@ bool MipsTargetInfo<ELFT>::isRelRelative(uint32_t Type) const { // a location that is relative to GOT. This function returns // the value for the symbol. template <class ELFT> typename ELFT::uint getMipsGpAddr() { - unsigned GPOffset = 0x7ff0; - return Out<ELFT>::Got->getVA() + GPOffset; + return Out<ELFT>::Got->getVA() + MipsGPOffset; } template uint32_t getMipsGpAddr<ELF32LE>(); |