diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
| -rw-r--r-- | lld/ELF/Writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 41af0e371ab..239f6a6433f 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -201,7 +201,7 @@ template <class ELFT, class RelT> static bool handleTlsRelocation(unsigned Type, SymbolBody *Body, InputSectionBase<ELFT> &C, RelT &RI) { if (Target->isTlsLocalDynamicReloc(Type)) { - if (Target->isTlsOptimized(Type, nullptr)) + if (Target->canRelaxTls(Type, nullptr)) return true; if (Out<ELFT>::Got->addCurrentModuleTlsIndex()) Out<ELFT>::RelaDyn->addReloc({&C, &RI}); @@ -212,7 +212,7 @@ static bool handleTlsRelocation(unsigned Type, SymbolBody *Body, return false; if (Target->isTlsGlobalDynamicReloc(Type)) { - bool Opt = Target->isTlsOptimized(Type, Body); + bool Opt = Target->canRelaxTls(Type, Body); if (!Opt && Out<ELFT>::Got->addDynTlsEntry(Body)) { Out<ELFT>::RelaDyn->addReloc({&C, &RI}); Out<ELFT>::RelaDyn->addReloc({nullptr, nullptr}); |

