[PATCH] D41246: [LLD][ELF] Optimize Arm PLT entries

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 10:29:26 PST 2017


peter.smith added a comment.

In https://reviews.llvm.org/D41246#955551, @pcc wrote:

> Instead of making the behaviour conditional on the flag, could we always emit the long PLT header and then conditionally emit short or long PLTs depending on what the offset is?


That sounds like it should work given that the entries are the same size. It would mean the lazy PLT lookup would be a little bit slower, but that is probably a reasonable trade off. Unless anyone has any objections to the idea I'm happy to give that a go tomorrow.


https://reviews.llvm.org/D41246





More information about the llvm-commits mailing list