summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Relocations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Relocations.cpp')
-rw-r--r--lld/ELF/Relocations.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 2fe44fc6303..7408506ccf7 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -248,8 +248,7 @@ handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C,
}
// Local-Dynamic relocs can be relaxed to Local-Exec.
- // TODO Delete R_ABS after all R_*_DTPREL_* relocations migrate to R_DTPREL.
- if ((Expr == R_ABS || Expr == R_DTPREL) && !Config->Shared) {
+ if (Expr == R_DTPREL && !Config->Shared) {
C.Relocations.push_back(
{Target->adjustRelaxExpr(Type, nullptr, R_RELAX_TLS_LD_TO_LE), Type,
Offset, Addend, &Sym});
OpenPOWER on IntegriCloud