[PATCH] D27406: [LLD][ELF] Ifunc implementation using synthetic sections

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 08:55:00 PST 2016


peter.smith added a comment.

The PltSection stores the offset in the RelaPlt of each relocation when adding the entry. These are used when writing the x86 and x86_64 writePlt(). If we were to sort the PLT relocations later we'd have to fix up these offsets after sorting (or only calculate the offsets after sorting). This is certainly possible but I'm not sure it is the best solution.

One of the attractions of adding an Iplt section is that there is no need to sort or fix up the offsets stored in the PLT.


https://reviews.llvm.org/D27406





More information about the llvm-commits mailing list