diff options
Diffstat (limited to 'lld/ELF/Target.cpp')
-rw-r--r-- | lld/ELF/Target.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 1a233416c9e..c3a3c295933 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1940,13 +1940,14 @@ RelExpr MipsTargetInfo<ELFT>::getRelExpr(uint32_t Type, return R_MIPS_GOT_LOCAL_PAGE; // fallthrough case R_MIPS_CALL16: + case R_MIPS_GOT_DISP: + case R_MIPS_TLS_GOTTPREL: + return R_MIPS_GOT_OFF; case R_MIPS_CALL_HI16: case R_MIPS_CALL_LO16: - case R_MIPS_GOT_DISP: case R_MIPS_GOT_HI16: case R_MIPS_GOT_LO16: - case R_MIPS_TLS_GOTTPREL: - return R_MIPS_GOT_OFF; + return R_MIPS_GOT_OFF32; case R_MIPS_GOT_PAGE: return R_MIPS_GOT_LOCAL_PAGE; case R_MIPS_TLS_GD: |