[lld] aa1d32f - [ELF][Mips] Use R_DTPREL for R_MIPS_TLS_DTPREL*
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 30 21:58:53 PDT 2021
Author: Fangrui Song
Date: 2021-10-30T21:58:43-07:00
New Revision: aa1d32f519193786278bd2a39627cce34705e84e
URL: https://github.com/llvm/llvm-project/commit/aa1d32f519193786278bd2a39627cce34705e84e
DIFF: https://github.com/llvm/llvm-project/commit/aa1d32f519193786278bd2a39627cce34705e84e.diff
LOG: [ELF][Mips] Use R_DTPREL for R_MIPS_TLS_DTPREL*
Added:
Modified:
lld/ELF/Arch/Mips.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Arch/Mips.cpp b/lld/ELF/Arch/Mips.cpp
index 8dc517fd1b3b3..8ab076cdeb194 100644
--- a/lld/ELF/Arch/Mips.cpp
+++ b/lld/ELF/Arch/Mips.cpp
@@ -131,13 +131,14 @@ RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s,
case R_MIPS_64:
case R_MIPS_GOT_OFST:
case R_MIPS_SUB:
+ return R_ABS;
case R_MIPS_TLS_DTPREL_HI16:
case R_MIPS_TLS_DTPREL_LO16:
case R_MIPS_TLS_DTPREL32:
case R_MIPS_TLS_DTPREL64:
case R_MICROMIPS_TLS_DTPREL_HI16:
case R_MICROMIPS_TLS_DTPREL_LO16:
- return R_ABS;
+ return R_DTPREL;
case R_MIPS_TLS_TPREL_HI16:
case R_MIPS_TLS_TPREL_LO16:
case R_MIPS_TLS_TPREL32:
More information about the llvm-commits
mailing list