diff options
-rw-r--r-- | lld/ELF/Relocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 63ed23ea8db..0da756caabf 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -139,7 +139,7 @@ static unsigned handleTlsRelocation(uint32_t Type, SymbolBody &Body, // If the symbol is preemptible we need the dynamic linker to write // the offset too. - if (Body.isPreemptible()) + if (isPreemptible(Body, Type)) Out<ELFT>::RelaDyn->addReloc({Target->TlsOffsetRel, Out<ELFT>::Got, Off + (uintX_t)sizeof(uintX_t), false, &Body, 0}); |