diff options
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 90517b621ec..8133b433d0b 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -119,7 +119,7 @@ template <class ELFT> void PltSection<ELFT>::writeTo(uint8_t *Buf) { uintptr_t InstPos = reinterpret_cast<uintptr_t>(Buf); uint64_t PltEntryAddr = (InstPos - Start) + this->getVA(); Target->writePltEntry(Buf, GotEntryAddr, PltEntryAddr); - Buf += 8; + Buf += EntrySize; } } |

