[ELF2] Use EntrySize, not 8, to advance the .plt buffer when writing

In preparation for making the size of a .plt entry target dependent, use the
existing EntrySize variable when writing (instead of a hard-coded value). NFC.

llvm-svn: 249720
This commit is contained in:
Hal Finkel 2015-10-08 19:16:05 +00:00
parent 48570f1f4b
commit cbd21a6ad2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}