Skip to content

Commit aa1d32f

Browse files
committed
[ELF][Mips] Use R_DTPREL for R_MIPS_TLS_DTPREL*
1 parent 4cc7c47 commit aa1d32f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lld/ELF/Arch/Mips.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,14 @@ RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s,
131131
case R_MIPS_64:
132132
case R_MIPS_GOT_OFST:
133133
case R_MIPS_SUB:
134+
return R_ABS;
134135
case R_MIPS_TLS_DTPREL_HI16:
135136
case R_MIPS_TLS_DTPREL_LO16:
136137
case R_MIPS_TLS_DTPREL32:
137138
case R_MIPS_TLS_DTPREL64:
138139
case R_MICROMIPS_TLS_DTPREL_HI16:
139140
case R_MICROMIPS_TLS_DTPREL_LO16:
140-
return R_ABS;
141+
return R_DTPREL;
141142
case R_MIPS_TLS_TPREL_HI16:
142143
case R_MIPS_TLS_TPREL_LO16:
143144
case R_MIPS_TLS_TPREL32:

0 commit comments

Comments
 (0)