diff options
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index afb373decc6..0896d04efb7 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -108,7 +108,7 @@ void InputSectionBase<ELFT>::relocate( uint8_t *BufLoc = Buf + Offset; uintX_t AddrLoc = OutSec->getVA() + Offset; - if (Type == Target->getTlsLocalDynamicReloc()) { + if (Target->isTlsLocalDynamicReloc(Type)) { Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, Out<ELFT>::Got->getVA() + Out<ELFT>::LocalModuleTlsIndexOffset + @@ -127,7 +127,7 @@ void InputSectionBase<ELFT>::relocate( SymbolBody &Body = *File->getSymbolBody(SymIndex)->repl(); - if (Type == Target->getTlsGlobalDynamicReloc()) { + if (Target->isTlsGlobalDynamicReloc(Type)) { Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc, Out<ELFT>::Got->getEntryAddr(Body) + getAddend<ELFT>(RI)); |