[PATCH] D54145: [ELF] - Fix R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX when target is IFUNC.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 13 01:07:10 PST 2018
grimar added a comment.
In https://reviews.llvm.org/D54145#1296604, @ruiu wrote:
> Where do you create .got.iplt?
After converting expression to PLT expression (`Expr = toPlt(Expr);`):
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L993
code flow goes inside `if (needsPlt(Expr) && !Sym.isInPlt()) {`:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L1018
And adds an entry to `In.IgotPlt` inside `addPltEntry`.
https://reviews.llvm.org/D54145
More information about the llvm-commits
mailing list