diff options
Diffstat (limited to 'gnu/llvm/tools/lld/ELF/InputSection.cpp')
| -rw-r--r-- | gnu/llvm/tools/lld/ELF/InputSection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/tools/lld/ELF/InputSection.cpp b/gnu/llvm/tools/lld/ELF/InputSection.cpp index 35800424837..6b1e92891b9 100644 --- a/gnu/llvm/tools/lld/ELF/InputSection.cpp +++ b/gnu/llvm/tools/lld/ELF/InputSection.cpp @@ -246,7 +246,8 @@ void InputSection<ELFT>::copyRelocations(uint8_t *Buf, ArrayRef<RelTy> Rels) { if (Config->Rela) P->r_addend = getAddend<ELFT>(Rel); P->r_offset = RelocatedSection->getOffset(Rel.r_offset); - P->setSymbolAndType(Body.DynsymIndex, Type, Config->Mips64EL); + P->setSymbolAndType(In<ELFT>::SymTab->getSymbolIndex(&Body), Type, + Config->Mips64EL); } } |
