summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r--lld/ELF/InputSection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 15485b4f6d2..1098105c50d 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -134,6 +134,12 @@ void InputSectionBase<ELFT>::relocate(
continue;
}
+ if (Target->isTlsOptimized(Type, Body)) {
+ Target->relocateTlsOptimize(BufLoc, BufEnd, AddrLoc,
+ getSymVA<ELFT>(Body));
+ continue;
+ }
+
uintX_t SymVA = getSymVA<ELFT>(Body);
if (Target->relocNeedsPlt(Type, Body)) {
SymVA = Out<ELFT>::Plt->getEntryAddr(Body);
OpenPOWER on IntegriCloud