diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index c773b7ab040..d4bfc639195 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -672,10 +672,9 @@ void Writer<ELFT>::scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) { // If a relocation needs GOT, we create a GOT slot for the symbol. if (refersToGotEntry(Expr)) { - uint32_t T = Body.isTls() ? Target->getTlsGotRel(Type) : Type; if (Config->EMachine == EM_MIPS && Expr == R_GOT_OFF) Addend -= MipsGPOffset; - C.Relocations.push_back({Expr, T, Offset, Addend, &Body}); + C.Relocations.push_back({Expr, Type, Offset, Addend, &Body}); if (Body.isInGot()) continue; Out<ELFT>::Got->addEntry(Body); |