forked from OSchip/llvm-project
[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:
parent
48570f1f4b
commit
cbd21a6ad2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue