================
@@ -749,9 +749,17 @@ static void addPltEntry(Ctx &ctx, PltSection &plt,
GotPltSection &gotPlt,
RelocationBaseSection &rel, RelType type, Symbol &sym)
{
plt.addEntry(sym);
gotPlt.addEntry(sym);
+ // The x86-64 psABI requires the r_addend of R_X86_64_JUMP_SLOT to hold the
+ // link-time VA of the PLT entry so that the dynamic linker can locate the
+ // indirect branch (l->l_addr + r_addend) and rewrite it to a direct branch
----------------
phoebewang wrote:
Removed comments.
https://github.com/llvm/llvm-project/pull/206002
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits