summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Arch/Mips.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Arch/Mips.cpp')
-rw-r--r--lld/ELF/Arch/Mips.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Arch/Mips.cpp b/lld/ELF/Arch/Mips.cpp
index f4c81e5a73d..18fc6968f5d 100644
--- a/lld/ELF/Arch/Mips.cpp
+++ b/lld/ELF/Arch/Mips.cpp
@@ -182,8 +182,8 @@ RelExpr MIPS<ELFT>::getRelExpr(RelType Type, const Symbol &S,
}
template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType Type) const {
- if (Type == R_MIPS_32 || Type == R_MIPS_64)
- return RelativeRel;
+ if (Type == SymbolicRel)
+ return Type;
return R_MIPS_NONE;
}
OpenPOWER on IntegriCloud