[PATCH] D54782: [ELF] Write IPLT header in -static -z retpolineplt mode
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 13:00:37 PST 2018
ruiu added inline comments.
================
Comment at: lld/trunk/ELF/Symbols.cpp:148-149
+ if (this->IsInIplt) {
+ if (Config->ZRetpolineplt)
+ return In.Iplt->getVA() + Target->getPltEntryOffset(PltIndex);
return In.Iplt->getVA() + PltIndex * Target->PltEntrySize;
----------------
This is nontrivial code, which needs a comment.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54782/new/
https://reviews.llvm.org/D54782
More information about the llvm-commits
mailing list